The SubnodeData Javascript class. More...
Public Slots | |
bool | visible () |
Returns true if the subnode is visible, false if it is hidden. More... | |
void | setVisible (bool visible) |
Sets whether or not the subnode is visible. More... | |
bool | enabled () |
Returns true if the subnode is enabled, false if it is disabled. More... | |
void | setEnabled (bool enabled) |
Sets whether or not the subnode is enabled. More... | |
String | name () |
Returns the name of the subnode. This is the Key used when the SubnodeData object was created. More... | |
Matrix4x4 | localTransformation () |
Returns the Matrix4x4 representing the transformations done locally to this subnode. More... | |
Point3d | pivot () |
Returns the Point3d position of the subnode's pivot. More... | |
void | setPivot (Point3d pivot) |
Sets the coordinates of the subnode's pivot. More... | |
Point3d | position () |
Returns the Point3d position of the subnode's position, or offset. More... | |
void | setPosition (Point3d position) |
Sets the coordinates of the subnode's position. More... | |
Point3d | scale () |
Returns a Point3d representation of the subnode's scale. More... | |
void | setScale (Point3d scale) |
Sets the Subnode's scale. More... | |
Quaternion | rotation () |
Returns the Quaternion representation of the subnode's rotation. More... | |
void | setRotation (Quaternion rotation) |
Sets the subnode's rotation. More... | |
Public Member Functions | |
SubnodeData (String subnodeName, String nodeName, double frame) | |
Create a new SubnodeData object. More... | |
Properties | |
bool | visible |
See visible() and setVisible(). More... | |
bool | enabled |
See enabled() and setEnabled(). More... | |
String | name |
See name(). More... | |
Matrix4x4 | localTransformation |
See localTransformation(). More... | |
Point3d | pivot |
See pivot() and setPivot(). More... | |
Point3d | position |
See position() and setPosition(). More... | |
Point3d | scale |
See scale() and setScale(). More... | |
Quaternion | rotation |
See rotation() and setRotation(). More... | |
The SubnodeData Javascript class.
Subnodes are the 3d objects that make up a 3d Model, and can be found in the 3D Graph View. The SubnodeData methods allow access and editing of subnode properties.
SubnodeData::SubnodeData | ( | String | subnodeName, |
String | nodeName, | ||
double | frame | ||
) |
Create a new SubnodeData object.
subnodeName | : The name, or key, of the subnode found in the 3D Graph View. |
nodeName | : The name of the node corresponding to the 3d Model. This can also be a SubnodeTransformation node. |
frame | : The frame number. |
|
slot |
Returns true if the subnode is enabled, false if it is disabled.
|
slot |
|
slot |
Returns the name of the subnode. This is the Key used when the SubnodeData object was created.
|
slot |
|
slot |
|
slot |
Returns the Quaternion representation of the subnode's rotation.
|
slot |
|
slot |
Sets whether or not the subnode is enabled.
enabled | : true to enable the subnode, false to disable it. |
|
slot |
Sets the coordinates of the subnode's pivot.
pivot | : The Point3d to set the subnode's pivot to in field units. |
|
slot |
Sets the coordinates of the subnode's position.
position | : The Point3d to set the subnode's position to in field units. |
|
slot |
Sets the subnode's rotation.
rotation | : The Quaternion to set the subnode's rotation to. |
|
slot |
Sets the Subnode's scale.
scale | : The Point3d to set the subnode's scale to. |
|
slot |
Sets whether or not the subnode is visible.
visible | : true to show the Subnode, false to hide it. |
|
slot |
Returns true if the subnode is visible, false if it is hidden.
|
readwrite |
See enabled() and setEnabled().
|
read |
|
read |
See name().
|
readwrite |
See pivot() and setPivot().
|
readwrite |
See position() and setPosition().
|
readwrite |
See rotation() and setRotation().
|
readwrite |
See scale() and setScale().
|
readwrite |
See visible() and setVisible().