Comments (11)
Just make a json including only one data_key for which you want to control visualization.
β» 1 data_key == 1 F4D dataset.
from mago3djs.
mago3d provides two version
- mago3djs + converter
Interworking with other business systems, mago3d is used as a pure 3d rendering engine - cms + converter
- j2ee full package including various manager functions
json is in the same environment as local developer unit test or 1
It is a sample that business system has to export data in json format.
Format for communicating with mago3d
The feature you mentioned is in cms
project, data_info table
project .... use_yn(column)
data_info ...... status(column)
When you modify a project or data in cms
Cache can be changed in real time.
from mago3djs.
Thank you for your suggestion.
This API needs modification as you say.
We focused on product launches and prototypes
There are still a lot of things missing.
In our current development version,
Separate the input parameter by key, value,
Add validation functionality for value type
We are adding more features to a variety of attributes.
from mago3djs.
I do not know if I understood the question well.
project : data ...... 1 : N
data : object ...... 1 : N
data control
"isPhysical" : false ......... Hide
"isPhysical" : true ......... Show
{
//attributes area
"attributes" : {
"isPhysical" : false,
"nodeType": "root",
"projectType": "project Type"
},
//Child node area
"children" : [
],
//Location information area
"data_key" : "Project name",
"data_name" : "Project name"
}
There is no object control part yet.
Do you need this kind of api?
Specifically, how do you want to handle the object?
ex) changeColorAPI(managerFactoryInstance, projectId, dataKey, objectIds, property, color)
from mago3djs.
I mean I can not control the part of data(red circle), I can only control the whole json file show or not.
from mago3djs.
Excuse me
For a more specific example of what you want to do
Could you please explain?
ex) I want to make the data transparent.
I want to erase it by dragging etc ...
from mago3djs.
By using changePropertyRenderingAPI I can only control the whole json file show or not.
For example I can use changePropertyRenderingAPI to show or hide "ifc_mep.json".
BUT a json file contain several "children"οΌ
I want to use a button to control the "children"(which is one attributes in a json file) show or hide
from mago3djs.
Thanks guys,I use @shire75 ' s method.
I also want to know the meaning of the "property" in API-
function changePropertyRenderingAPI(managerFactoryInstance, isShow, projectId, property)
I find that in this function property can be any string format data, even " ".
from mago3djs.
The parameter 'property' used in the function changePropertyRenderingAPI(managerFactoryInstance, isShow, projectId, property) is a condition defined by key/value attribute.
For example, if you call this function with property = 'isMain=false' and isShow=false, all F4D datasets in a json with attribute {"isMain" : false} disappear.
So, if you want to show on/off for only 1 F4D, allocate a unique key/value attribute(like "thisBuildingSupportsVisibilityControl" : true) on it and use this function with that key/value attribute.
from mago3djs.
Current format of the parameter, property, is ambiguous a little.
So, we have a plan to divide property into propertyKey and propertyValue in future upgrade.
from mago3djs.
Thanks a lot , my problem is solved . I track the API and know the meaning of that function.
{
var splittedWords = property.split("=");
var propertyKey = splittedWords[0];
var propertyValue = splittedWords[1];
}
this parameter is really a little bit ambiguous, I totally have no idea it need to be written in the format of
'isMain=ture' and suggest you need a format examination for that 'input' .
Anyway, Thanks for your patience.
from mago3djs.
Related Issues (20)
- λ‘κ³
- An in-range update of eslint-plugin-react is breaking the build π¨ HOT 2
- TypeError: Cannot read property 'setBoxSize' of undefined HOT 9
- Can't Render IFC files HOT 5
- μ¬μ© κ°λ₯ν API λ²μμ 3D λ λλ§ μ§μ λ²μ λ¬Έμ HOT 7
- about camera HOT 18
- μ¬μ§ λμ€νλ μ΄μ λν μ§λ¬Έ HOT 3
- εε¦θ
- about Cesium.Viewer HOT 2
- cannot display converted data HOT 2
- Linux κΈ°λ°μ μ F4DConverter λ§ν¬κ° mago3D νλ‘μ νΈμ μ°κ²°λμ΄μΌ νμ§ μμκΉμ? HOT 1
- F4DConverter μ€ν μ€λ₯ HOT 1
- How do I change the model size? HOT 2
- About the current camera perspective? HOT 2
- TypeError: Cannot read property 'texId' of undefined
- a problem with the "Rendering has stopped" in the issue registration HOT 1
- Test run HOT 17
- error when source code build using gulp
- how to get all object id from 3D model?
- How do I use digital twins in mago3d? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mago3djs.