15#define OSG_ProxyNode 1
47 virtual bool removeChildren(
unsigned int pos,
unsigned int numChildrenToRemove);
The core osg library provides the basic scene graph classes such as Nodes, State and Drawables,...
Definition AlphaFunc:19
BoundingSphered BoundingSphere
Definition BoundingSphere:308
Vec3d vec_type
Definition BoundingSphere:37
Vec3d::value_type value_type
Definition BoundingSphere:38
Copy Op(erator) used to control whether shallow or deep copy is used during copy construction and clo...
Definition CopyOp:41
@ SHALLOW_COPY
Definition CopyOp:47
virtual bool addChild(Node *child)
Add Node to Group.
Base class for all internal nodes in the scene graph.
Definition Node:72
const BoundingSphere & getBound() const
Definition Node:425
Visitor for type safe operations on osg::Nodes.
Definition NodeVisitor:82
bool addChild(const ref_ptr< T > &child, const std::string &filename)
Definition ProxyNode:45
const std::string & getFileName(unsigned int childNo) const
Definition ProxyNode:66
vec_type _userDefinedCenter
Definition ProxyNode:140
LoadingExternalReferenceMode
Modes which control how the proxynode external reference are loaded.
Definition ProxyNode:95
@ DEFER_LOADING_TO_DATABASE_PAGER
Definition ProxyNode:97
@ LOAD_IMMEDIATELY
Definition ProxyNode:96
@ NO_AUTOMATIC_LOADING
Definition ProxyNode:98
virtual void traverse(NodeVisitor &nv)
Traverse downwards : calls children's accept method with NodeVisitor.
void setLoadingExternalReferenceMode(LoadingExternalReferenceMode mode)
Set how the child loading is done.
Definition ProxyNode:102
CenterMode _centerMode
Definition ProxyNode:139
const vec_type & getCenter() const
Return the ProxyNode center point.
Definition ProxyNode:112
unsigned int getNumFileNames() const
Definition ProxyNode:67
ProxyNode(const ProxyNode &, const CopyOp ©op=CopyOp::SHALLOW_COPY)
Copy constructor using CopyOp to manage deep vs shallow copy.
void setCenter(const vec_type ¢er)
Sets the object-space point which defines the center of the osg::ProxyNode.
Definition ProxyNode:109
value_type _radius
Definition ProxyNode:141
virtual BoundingSphere computeBound() const
Compute the bounding sphere around Node's geometry or children.
void setDatabaseOptions(osg::Referenced *options)
Set the optional database osgDB::Options object to use when loading children.
Definition ProxyNode:51
void expandFileNameListTo(unsigned int pos)
void setDatabasePath(const std::string &path)
Set the database path to prepend to children's filenames.
osg::BoundingSphere::vec_type vec_type
Definition ProxyNode:34
CenterMode getCenterMode() const
Get how the center of object should be determined when computing which child is active.
Definition ProxyNode:91
const std::string & getDatabasePath() const
Get the database path used to prepend to children's filenames.
Definition ProxyNode:63
virtual ~ProxyNode()
Definition ProxyNode:126
virtual bool addChild(Node *child)
Add Node to Group.
LoadingExternalReferenceMode getLoadingExternalReferenceMode() const
Get the loading mode.
Definition ProxyNode:105
FileNameDatabaseRequestList _filenameList
Definition ProxyNode:133
ref_ptr< Referenced > _databaseOptions
Definition ProxyNode:134
osg::ref_ptr< osg::Referenced > & getDatabaseRequest(unsigned int childNo)
Return the DatabaseRequest object used by the DatabasePager to keep track of file load requests being...
Definition ProxyNode:73
virtual bool removeChildren(unsigned int pos, unsigned int numChildrenToRemove)
Remove children from Group.
virtual bool addChild(Node *child, const std::string &filename)
const osg::Referenced * getDatabaseOptions() const
Get the optional database osgDB::Options object used when loading children.
Definition ProxyNode:57
std::pair< std::string, osg::ref_ptr< osg::Referenced > > FileNameDatabaseRequestPair
Definition ProxyNode:130
CenterMode
Modes which control how the center of object should be determined when computing which child is activ...
Definition ProxyNode:81
@ USE_BOUNDING_SPHERE_CENTER
Definition ProxyNode:82
@ USER_DEFINED_CENTER
Definition ProxyNode:83
@ UNION_OF_BOUNDING_SPHERE_AND_USER_DEFINED
Definition ProxyNode:84
LoadingExternalReferenceMode _loadingExtReference
Definition ProxyNode:137
osg::Referenced * getDatabaseOptions()
Get the optional database osgDB::Options object used when loading children.
Definition ProxyNode:54
void setFileName(unsigned int childNo, const std::string &filename)
Definition ProxyNode:65
const osg::ref_ptr< osg::Referenced > & getDatabaseRequest(unsigned int childNo) const
Return the const DatabaseRequest object.
Definition ProxyNode:76
META_Node(osg, ProxyNode)
void setCenterMode(CenterMode mode)
Set how the center of object should be determined when computing which child is active.
Definition ProxyNode:88
value_type getRadius() const
Get the object-space radius of the volume enclosed by the ProxyNode.
Definition ProxyNode:120
std::string _databasePath
Definition ProxyNode:135
void setRadius(value_type radius)
Set the object-space reference radius of the volume enclosed by the ProxyNode.
Definition ProxyNode:117
osg::BoundingSphere::value_type value_type
Definition ProxyNode:35
std::vector< FileNameDatabaseRequestPair > FileNameDatabaseRequestList
Definition ProxyNode:131
Smart pointer for handling referenced counted objects.
Definition ref_ptr:32
T * get() const
Definition ref_ptr:117
Base class for providing reference counted objects.
Definition Referenced:44
#define OSG_EXPORT
Definition Export:39