public class Util
extends java.lang.Object
Contains various static utility functions and constants used throughout that can't be refactored into specific classes..
Modifier and Type | Field and Description |
---|---|
static javafx.scene.paint.Material |
DEFAULT_ERROR_MATERIAL
Default material for errors or inconsistent states.
|
static javafx.scene.paint.Material |
DEFAULT_HIGHLIGHTED_MATERIAL
Default material for selected, highlighted, etc.
|
static javafx.scene.paint.Material |
DEFAULT_MATERIAL
Default material for normal states.
|
static java.lang.String |
SHAPE_PROP_KEY |
Constructor and Description |
---|
Util() |
Modifier and Type | Method and Description |
---|---|
static javafx.scene.transform.Transform |
convertTransformation(Transformation transformation)
Converts an ICE Geometry Transformation data structure to a JavaFX
Transform.
|
static javafx.scene.transform.Rotate |
eulerToRotate(double radX,
double radY,
double radZ)
Converts Euler angle representation to Axis Angle that can be used by
JavaFX.
|
static javafx.scene.Group |
getFxGroup(INode node)
Returns the JavaFX node associated with the supplied ICE model node.
|
public static final javafx.scene.paint.Material DEFAULT_MATERIAL
public static final javafx.scene.paint.Material DEFAULT_HIGHLIGHTED_MATERIAL
public static final javafx.scene.paint.Material DEFAULT_ERROR_MATERIAL
public static final java.lang.String SHAPE_PROP_KEY
public static javafx.scene.transform.Transform convertTransformation(Transformation transformation)
Converts an ICE Geometry Transformation data structure to a JavaFX Transform.
transform
- ICE Transformation data structurepublic static javafx.scene.transform.Rotate eulerToRotate(double radX, double radY, double radZ)
Converts Euler angle representation to Axis Angle that can be used by JavaFX.
radX
- radY
- radZ
- public static javafx.scene.Group getFxGroup(INode node)
Returns the JavaFX node associated with the supplied ICE model node.
node
- ICE Mode