29 #ifndef __VIEWPOINTGROUP_H__
30 #define __VIEWPOINTGROUP_H__
69 virtual void onAdd(
Node * n );
74 Inst< MFChild > _children = 0,
75 Inst< SFString > _description = 0,
76 Inst< SFBool > _displayed = 0,
77 Inst< SFNode > _metadata = 0,
78 Inst< SFBool > _retainUserOffsets = 0,
79 Inst< SFVec3f > _size = 0 );
82 viewpoint_groups.remove(
this );
83 viewpoint_groups_changed =
true;
97 virtual void traverseSG( TraverseInfo &ti );
101 bool containsViewpoint( X3DViewpointNode *vp )
const;
103 list< Node * > getChildrenAsList();
112 return in_scene_graph;
115 typedef list< ViewpointGroup * > ViewpointGroupList;
119 return viewpoint_groups;
125 bool status = viewpoint_groups_changed;
126 viewpoint_groups_changed =
false;
181 static ViewpointGroupList viewpoint_groups;
184 static bool viewpoint_groups_changed;
Contains the MFNode class.
Header file for X3DViewpointNode, X3D scene-graph node.
MFNode is almost like any MField but it encapsulates a vector of Node pointers.
Definition: MFNode.h:44
Node is the base class for all classes that can be part of the H3D scene-graph.
Definition: Node.h:46
Type class of children field.
Definition: ViewpointGroup.h:68
ViewpointGroup is used to control display of viewpoints on the viewpoint list.
Definition: ViewpointGroup.h:64
H3DUniquePtr< SFVec3f > size
The size field provides the size of a proximity box within which the ViewpointGroup is usable and dis...
Definition: ViewpointGroup.h:171
bool display_in_list
Flag to show whether this ViewpointGroup should be displayed in browser list of viewpoints.
Definition: ViewpointGroup.h:175
H3DUniquePtr< SFVec3f > center
The center field provides a position offset from origin of local coordinate system.
Definition: ViewpointGroup.h:135
bool inSceneGraph()
Returns true if this node exists in the scene graph.
Definition: ViewpointGroup.h:111
bool in_scene_graph
True if this ViewpointGroup exists in scene graph.
Definition: ViewpointGroup.h:192
bool is_top_level
True if this ViewpointGroup exists outside of a another ViewpointGroup.
Definition: ViewpointGroup.h:189
static bool viewpointGroupsChanged()
True on any addition/deletion/in_scene_graph status change of viewpoint group, reset once inquired.
Definition: ViewpointGroup.h:124
static const ViewpointGroupList & getAllViewpointGroups()
Returns a list of all current ViewpointGroup instances.
Definition: ViewpointGroup.h:118
bool isTopLevel()
Returns true if this node exists outside of another ViewpointGroup.
Definition: ViewpointGroup.h:106
H3DUniquePtr< SFBool > retainUserOffsets
The retainUserOffsets field specifies whether the user is returned to the originally defined viewpoin...
Definition: ViewpointGroup.h:162
H3DUniquePtr< SFString > description
The description field provides a simple description or navigation hint to be displayed for this Viewp...
Definition: ViewpointGroup.h:148
H3DUniquePtr< MFChild > children
The children field is a sequence of nodes of type X3DViewpointNode.
Definition: ViewpointGroup.h:141
H3DUniquePtr< SFBool > displayed
The displayed field determines whether this ViewpointGroup is displayed in the current viewpoint list...
Definition: ViewpointGroup.h:155
This abstract node type indicates that the concrete nodes which are instantiated based on it may be u...
Definition: X3DChildNode.h:42
H3D API namespace.
Definition: Anchor.h:38
The H3DNodeDatabase contains a mapping between a name of a Node and the constructor for the Node with...
Definition: H3DNodeDatabase.h:194