public class FXSceneGenerator extends java.lang.Object implements ISceneGenerator
Generates JavaFX scenes from ICE geometry model inputs.
Constructor and Description |
---|
FXSceneGenerator() |
Modifier and Type | Method and Description |
---|---|
javafx.scene.Node |
generateNode(INode node)
Generates a JavaFX node from the scene model node.
|
javafx.scene.Node |
generateScene(INode iceRoot)
Iteratively generates a JavaFX scene from the input
INode model. |
void |
processAttachment(INode node,
IAttachment currentAttachment)
Processes the node attachment, generating the JavaFX specific
functionality related to the attachment.
|
void |
processAttachmentGroups(INode child)
Processes all attachments for the given model node, for all types of
attachments.
|
public javafx.scene.Node generateScene(INode iceRoot)
Iteratively generates a JavaFX scene from the input INode
model.
TODO: parallelize scene generation.
generateScene
in interface ISceneGenerator
iceRoot
- the root model node of the scenefxRoot
- the fxRootpublic javafx.scene.Node generateNode(INode node)
Generates a JavaFX node from the scene model node.
generateNode
in interface ISceneGenerator
node
- the scene model node to use to generate a JavaFX node.public void processAttachmentGroups(INode child)
Processes all attachments for the given model node, for all types of attachments.
processAttachmentGroups
in interface ISceneGenerator
child
- the input model nodepublic void processAttachment(INode node, IAttachment currentAttachment)
Processes the node attachment, generating the JavaFX specific functionality related to the attachment.
processAttachment
in interface ISceneGenerator
child
- the node who owns the attachments to processcurrentAttachment
- the attachment to process.