Basic Image AlgorithmS Library
2.8.0
|
struct containing details of a OSG::Node when used in a wxTreeCtrlOpenSGWx More...
#include <GLviewer/Scenes/NodeInfo.hh>
Public Member Functions | |
NodeInfo () | |
xmlNodePtr | XMLAdd (const xmlNodePtr Node, XMLIO &XMLObject) const |
call this to add the class to a node of a given xml tree More... | |
virtual int | XMLGetClassName (std::string &TopLevelTag, double &Version) const |
derived classes must implement this, so that it returns the name of the class for the top level tag in the XML file More... | |
virtual int | XMLIn (const xmlNodePtr Node, BIAS::XMLIO &XMLObject) |
derived classes must implement this to read everything in Node into (*this). More... | |
virtual int | XMLOut (const xmlNodePtr Node, BIAS::XMLIO &XMLObject) const |
derived classes must implement this to write the code of (*this) into the XML tree. More... | |
int | XMLRead (const std::string &Filename) |
derived classes must implement the function XMLIn which is called by this function XMLRead to read everything with name Filename into (*this). More... | |
int | XMLReadFromString (const std::string &str) |
reconstruct xml tree from string More... | |
int | XMLWrite (const std::string &Filename, int CompressionLevel=0, bool AutoAddCompressionSuffix=true, std::string encoding="UTF-8") const |
call this to add the class to a new xml tree and write it to the file Filename. More... | |
int | XMLWriteToString (std::string &str, std::string encoding="UTF-8") const |
serialize xml tree to string More... | |
Public Attributes | |
std::string | FileName |
std::string | Id |
bool | IsClippingOutSide |
bool | IsEditable |
bool | IsExpanded |
bool | IsOccluder |
bool | IsVisible |
unsigned long long | MarkerID |
std::string | Name |
eNodeType | NodeType |
double | SizeMM |
struct containing details of a OSG::Node when used in a wxTreeCtrlOpenSGWx
Definition at line 61 of file NodeInfo.hh.
|
inline |
Definition at line 63 of file NodeInfo.hh.
References BIAS::eNT_Default, FileName, IsClippingOutSide, IsEditable, IsExpanded, IsOccluder, IsVisible, Name, NodeType, and SizeMM.
|
inherited |
call this to add the class to a node of a given xml tree
Definition at line 26 of file XMLBase.cpp.
References BIAS::XMLIO::addAttribute(), and BIAS::XMLIO::addChildNode().
|
inlinevirtual |
derived classes must implement this, so that it returns the name of the class for the top level tag in the XML file
Implements BIAS::XMLBase.
Definition at line 91 of file NodeInfo.hh.
|
inlinevirtual |
derived classes must implement this to read everything in Node into (*this).
Called by XMLRead of XMLBase.
Implements BIAS::XMLBase.
Definition at line 98 of file NodeInfo.hh.
References BIAS::eNT_BBox, BIAS::eNT_Default, BIAS::eNT_Marker, FileName, BIAS::XMLIO::getAttributeValueBool(), BIAS::XMLIO::getAttributeValueString(), Id, IsClippingOutSide, IsEditable, IsExpanded, IsOccluder, IsVisible, MarkerID, Name, NodeType, and BIAS::NodeTypeXMLStrings.
Referenced by BIAS::NodeInfoMap::XMLIn().
|
inlinevirtual |
derived classes must implement this to write the code of (*this) into the XML tree.
Called by XMLRead of XMLBase.
node | always points to a node with a name given by the function XMLGetTopLevelName |
Implements BIAS::XMLBase.
Definition at line 133 of file NodeInfo.hh.
References BIAS::XMLIO::addAttribute(), BIAS::eNT_BBox, BIAS::eNT_Marker, FileName, Id, IsClippingOutSide, IsEditable, IsExpanded, IsOccluder, IsVisible, MarkerID, Name, NodeType, and BIAS::NodeTypeXMLStrings.
|
inherited |
derived classes must implement the function XMLIn which is called by this function XMLRead to read everything with name Filename into (*this).
Definition at line 78 of file XMLBase.cpp.
References BIAS::XMLIO::clear(), BIAS::XMLIO::getAttributeValueDouble(), BIAS::XMLIO::getNodeName(), and BIAS::XMLIO::read().
Referenced by BIAS::biasGLviewerGLUT::Init(), BIAS::SceneOpenSceneGraph::Load(), and BIAS::GLProjectionParametersPerspective::XMLRead().
|
inherited |
reconstruct xml tree from string
Definition at line 111 of file XMLBase.cpp.
References BIAS::XMLIO::clear(), BIAS::XMLIO::getAttributeValueDouble(), BIAS::XMLIO::getNodeName(), and BIAS::XMLIO::ReadFromString().
Referenced by BIAS::IOUtils::GetProjection().
|
inherited |
call this to add the class to a new xml tree and write it to the file Filename.
Calls function XMLOut of derived class
CompressionLevel | 0..9 (0=off, 9=highest compression) |
Definition at line 40 of file XMLBase.cpp.
References BIAS::XMLIO::addAttribute(), BIAS::XMLIO::clear(), BIAS::XMLIO::create(), BIAS::XMLIO::SetCompression(), BIAS::XMLIO::SetEncoding(), and BIAS::XMLIO::write().
Referenced by BIAS::SphericalDepthPanorama::GetTriangleMesh(), BIAS::SceneOpenSceneGraph::Save(), BIAS::ScreenShotListener::StoreNextScreenShot_(), and BIAS::GLProjectionParametersPerspective::XMLWrite().
|
inherited |
serialize xml tree to string
Definition at line 61 of file XMLBase.cpp.
References BIAS::XMLIO::addAttribute(), BIAS::XMLIO::clear(), BIAS::XMLIO::create(), BIAS::XMLIO::SetEncoding(), and BIAS::XMLIO::WriteToString().
std::string BIAS::NodeInfo::FileName |
Definition at line 77 of file NodeInfo.hh.
Referenced by NodeInfo(), XMLIn(), and XMLOut().
std::string BIAS::NodeInfo::Id |
Definition at line 89 of file NodeInfo.hh.
bool BIAS::NodeInfo::IsClippingOutSide |
Definition at line 85 of file NodeInfo.hh.
Referenced by NodeInfo(), XMLIn(), and XMLOut().
bool BIAS::NodeInfo::IsEditable |
Definition at line 82 of file NodeInfo.hh.
Referenced by NodeInfo(), XMLIn(), and XMLOut().
bool BIAS::NodeInfo::IsExpanded |
Definition at line 83 of file NodeInfo.hh.
Referenced by NodeInfo(), XMLIn(), and XMLOut().
bool BIAS::NodeInfo::IsOccluder |
Definition at line 84 of file NodeInfo.hh.
Referenced by NodeInfo(), XMLIn(), and XMLOut().
bool BIAS::NodeInfo::IsVisible |
Definition at line 81 of file NodeInfo.hh.
Referenced by NodeInfo(), XMLIn(), and XMLOut().
unsigned long long BIAS::NodeInfo::MarkerID |
Definition at line 87 of file NodeInfo.hh.
std::string BIAS::NodeInfo::Name |
Definition at line 74 of file NodeInfo.hh.
Referenced by NodeInfo(), XMLIn(), and XMLOut().
eNodeType BIAS::NodeInfo::NodeType |
Definition at line 80 of file NodeInfo.hh.
Referenced by NodeInfo(), XMLIn(), and XMLOut().
double BIAS::NodeInfo::SizeMM |
Definition at line 86 of file NodeInfo.hh.
Referenced by NodeInfo().