Giter VIP home page Giter VIP logo

Comments (11)

shire75 avatar shire75 commented on June 12, 2024 1

Just make a json including only one data_key for which you want to control visualization.

β€» 1 data_key == 1 F4D dataset.

from mago3djs.

cheonjeongdae avatar cheonjeongdae commented on June 12, 2024 1

mago3d provides two version

  1. mago3djs + converter
    Interworking with other business systems, mago3d is used as a pure 3d rendering engine
  2. 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.

cheonjeongdae avatar cheonjeongdae commented on June 12, 2024 1

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.

cheonjeongdae avatar cheonjeongdae commented on June 12, 2024

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.

YenseanHub avatar YenseanHub commented on June 12, 2024

image
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.

cheonjeongdae avatar cheonjeongdae commented on June 12, 2024

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.

YenseanHub avatar YenseanHub commented on June 12, 2024

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.

YenseanHub avatar YenseanHub commented on June 12, 2024

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.

shire75 avatar shire75 commented on June 12, 2024

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.

shire75 avatar shire75 commented on June 12, 2024

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.

YenseanHub avatar YenseanHub commented on June 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.