15#define OSG_ProxyNode 1
47 virtual bool removeChildren(
unsigned int pos,
unsigned int numChildrenToRemove);
65 void setFileName(
unsigned int childNo,
const std::string& filename) { expandFileNameListTo(childNo); _filenameList[childNo].first=filename; }
66 const std::string&
getFileName(
unsigned int childNo)
const {
return _filenameList[childNo].first; }
84 UNION_OF_BOUNDING_SPHERE_AND_USER_DEFINED
109 inline void setCenter(
const vec_type& center) {
if (_centerMode!=UNION_OF_BOUNDING_SPHERE_AND_USER_DEFINED) { _centerMode=USER_DEFINED_CENTER; } _userDefinedCenter = center; }
112 inline const vec_type&
getCenter()
const {
if ((_centerMode==USER_DEFINED_CENTER)||(_centerMode==UNION_OF_BOUNDING_SPHERE_AND_USER_DEFINED))
return _userDefinedCenter;
else return getBound().center(); }
Definition BoundingSphere:35
VT vec_type
Definition BoundingSphere:37
VT::value_type value_type
Definition BoundingSphere:38
virtual bool addChild(Node *child)
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
Definition ProxyNode:95
@ DEFER_LOADING_TO_DATABASE_PAGER
Definition ProxyNode:97
@ LOAD_IMMEDIATELY
Definition ProxyNode:96
virtual void traverse(NodeVisitor &nv)
void setLoadingExternalReferenceMode(LoadingExternalReferenceMode mode)
Definition ProxyNode:102
CenterMode _centerMode
Definition ProxyNode:139
const vec_type & getCenter() const
Definition ProxyNode:112
unsigned int getNumFileNames() const
Definition ProxyNode:67
ProxyNode(const ProxyNode &, const CopyOp ©op=CopyOp::SHALLOW_COPY)
void setCenter(const vec_type ¢er)
Definition ProxyNode:109
value_type _radius
Definition ProxyNode:141
virtual BoundingSphere computeBound() const
void setDatabaseOptions(osg::Referenced *options)
Definition ProxyNode:51
void expandFileNameListTo(unsigned int pos)
void setDatabasePath(const std::string &path)
osg::BoundingSphere::vec_type vec_type
Definition ProxyNode:34
CenterMode getCenterMode() const
Definition ProxyNode:91
const std::string & getDatabasePath() const
Definition ProxyNode:63
virtual ~ProxyNode()
Definition ProxyNode:126
virtual bool addChild(Node *child)
LoadingExternalReferenceMode getLoadingExternalReferenceMode() const
Definition ProxyNode:105
FileNameDatabaseRequestList _filenameList
Definition ProxyNode:133
ref_ptr< Referenced > _databaseOptions
Definition ProxyNode:134
osg::ref_ptr< osg::Referenced > & getDatabaseRequest(unsigned int childNo)
Definition ProxyNode:73
virtual bool removeChildren(unsigned int pos, unsigned int numChildrenToRemove)
virtual bool addChild(Node *child, const std::string &filename)
const osg::Referenced * getDatabaseOptions() const
Definition ProxyNode:57
std::pair< std::string, osg::ref_ptr< osg::Referenced > > FileNameDatabaseRequestPair
Definition ProxyNode:130
CenterMode
Definition ProxyNode:81
@ USE_BOUNDING_SPHERE_CENTER
Definition ProxyNode:82
@ USER_DEFINED_CENTER
Definition ProxyNode:83
LoadingExternalReferenceMode _loadingExtReference
Definition ProxyNode:137
osg::Referenced * getDatabaseOptions()
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
Definition ProxyNode:76
META_Node(osg, ProxyNode)
void setCenterMode(CenterMode mode)
Definition ProxyNode:88
value_type getRadius() const
Definition ProxyNode:120
std::string _databasePath
Definition ProxyNode:135
void setRadius(value_type radius)
Definition ProxyNode:117
osg::BoundingSphere::value_type value_type
Definition ProxyNode:35
std::vector< FileNameDatabaseRequestPair > FileNameDatabaseRequestList
Definition ProxyNode:131
T * get() const
Definition ref_ptr:117
author: Julien Valentin 2017 (mp3butcher@hotmail.com)
Definition AlphaFunc:19
#define OSG_EXPORT
Definition osg/Export:39