
Public Member Functions | |
| virtual void | Release () |
| void | SetEnabled (bool bOn) |
| bool | GetEnabled () const |
| void | SetName2 (const char *str) |
| const char * | GetName2 () const |
| void | GetBoundBox (FBox3 &box) |
| Get the Bounding Box of the node, in world coordinates. | |
| void | GetBoundSphere (FSphere &sphere, bool bGlobal=false) |
| void | GetPrimCounts (vtPrimInfo &info) |
| Get information about the number of display primitives. | |
| void | LocalToWorld (FPoint3 &point) |
| Transform a point from a node's local coordinates to world coordinates. | |
| vtGroup * | GetParent (int iParent=0) |
| void | SetFog (bool bOn, float start=0, float end=10000, const RGBf &color=s_white, enum FogType Type=FM_LINEAR) |
| void | ApplyVertexRotation (const FPoint3 &axis, float angle) |
| void | ApplyVertexTransform (const FMatrix4 &mat) |
Static Public Member Functions | |
| static vtNode * | LoadModel (const char *filename, bool bAllowCache=true, bool bDisableMipmaps=false) |
| Load a 3D model file. | |
|
||||||||||||
|
Given a node with geometry under it, rotate the vertices of that geometry by a given axis/angle. |
|
|
Given any node with geometry under it, transform the vertices of that geometry. |
|
|
Calculates the bounding box of the geometry contained in and under this node in the scene graph. Note that unlike bounding sphere which is cached, this value is calculated every time.
Implements vtNodeBase. |
|
||||||||||||
|
Get the Bounding Sphere of the node Implements vtNodeBase. |
|
|
Return the enabled state of a node. Implements vtNodeBase. |
|
|
Get the name of the node. Implements vtNodeBase. |
|
|
Return the parent of this node in the scene graph. If the node is not in the scene graph, NULL is returned.
Implements vtNodeBase. |
|
|
This method walks through a node (and all its children), collecting information about all the geometric primitives. The result is placed in an object of type vtPrimInfo. This includes information such as number of vertices, number of triangles, and so forth. Note that this can be a time-consuming operation if your geometry is large or complex. The results are not cached, so this method should be called only when needed.
|
|
||||||||||||||||
|
Load a 3D model from a file. The underlying scenegraph (e.g. OSG) is used to load the model, which is returned as a vtNode. You can then use this node normally, for example add it to your scenegraph with vtGroup::AddChild(), or to your terrain's subgraph with vtTerrain::AddNode().
|
|
|
Transform a 3D point from a node's local frame of reference to world coordinates. This is done by walking the scene graph upwards, applying all transforms that are encountered.
|
|
|
Releases a node. Use this method instead of C++'s delete operator when you are done with a node. Internally, the node is reference counted so it is not deleted until all references to it are removed. Implements vtNodeBase. Reimplemented in vtLodGrid, vtSimpleLodGrid, vtPagedStructureLOD, vtPagedStructureLodGrid, vtGroup, vtTransform, vtLight, vtGeom, vtLOD, and vtHUD. |
|
|
Set the enabled state of this node. When the node is not enabled, it is not rendered. If it is a group node, all of the nodes children are also not rendered. Implements vtNodeBase. Reimplemented in vtLight. |
|
||||||||||||||||||||||||
|
Set the Fog state for a node. You can turn fog on or off. When you turn fog on, it affects this node and all others below it in the scene graph.
|
|
|
Set the name of the node. Implements vtNodeBase. |
1.4.5