Changeset 13041 for OpenSceneGraph/trunk/src/osgPlugins/geo/osgGeoNodes.h
- Timestamp:
- 03/21/12 18:36:20 (14 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgPlugins/geo/osgGeoNodes.h
r12577 r13041 20 20 inline unsigned int getToken() const { return token;} 21 21 inline unsigned int getFID() const { return fid;} 22 inline double *getVar() { 22 inline double *getVar() { 23 23 return &(val.d);} // address of variable 24 24 inline const double getVal() const { return (val.d);} … … 53 53 internalVars(const internalVars &iv) { 54 54 vars=iv.vars; } 55 ~internalVars() { 55 ~internalVars() { 56 56 } 57 57 void addInternalVars(const georecord &gr); 58 58 void update(const osg::FrameStamp *_frameStamp); 59 double *getVar(const unsigned fid) { 59 double *getVar(const unsigned fid) { 60 60 for (std::vector<geoValue>::iterator itr=vars.begin(); 61 61 itr!=vars.end(); … … 93 93 unsigned int number() { return vars.size();} 94 94 std::vector<geoValue> *getvars() { return &vars;} 95 double *getVar(const unsigned fid) { 95 double *getVar(const unsigned fid) { 96 96 for (std::vector<geoValue>::iterator itr=vars.begin(); itr<vars.end(); itr++) { 97 97 if (itr->getFID() == fid) return (itr->getVar()); … … 99 99 return NULL; 100 100 } 101 const geoValue *getGeoVar(const unsigned fid) const { 101 const geoValue *getGeoVar(const unsigned fid) const { 102 102 for (std::vector<geoValue>::const_iterator itr=vars.begin(); itr<vars.end(); itr++) { 103 103 if (itr->getFID() == fid) return (&(*itr)); … … 119 119 { 120 120 output << " cpalette: " <<(int)pc.cr << " " <<(int)pc.cg << " " <<(int)pc.cb << " " <<(int)pc.ca; 121 return output; // to enable cascading.. 121 return output; // to enable cascading.. 122 122 } 123 123 private: … … 133 133 geoHeaderGeo(); 134 134 geoHeaderGeo(const geoHeaderGeo &geo,const osg::CopyOp& copyop=osg::CopyOp::SHALLOW_COPY); 135 135 136 136 void addInternalVars(const georecord &gr) { intVars->addInternalVars(gr);} 137 137 internalVars *getInternalVars(void) const { return intVars;}
