Basic Image AlgorithmS Library  2.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Public Attributes | List of all members
BIAS::NodeInfo Struct Reference

struct containing details of a OSG::Node when used in a wxTreeCtrlOpenSGWx More...

#include <GLviewer/Scenes/NodeInfo.hh>

+ Inheritance diagram for BIAS::NodeInfo:
+ Collaboration diagram for BIAS::NodeInfo:

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
 

Detailed Description

struct containing details of a OSG::Node when used in a wxTreeCtrlOpenSGWx

Definition at line 61 of file NodeInfo.hh.

Constructor & Destructor Documentation

BIAS::NodeInfo::NodeInfo ( )
inline

Member Function Documentation

xmlNodePtr XMLBase::XMLAdd ( const xmlNodePtr  Node,
XMLIO XMLObject 
) const
inherited

call this to add the class to a node of a given xml tree

Attention
interface changed 3/2008: return value now nodeptr of added node!

Definition at line 26 of file XMLBase.cpp.

References BIAS::XMLIO::addAttribute(), and BIAS::XMLIO::addChildNode().

virtual int BIAS::NodeInfo::XMLGetClassName ( std::string &  TopLevelTag,
double &  Version 
) const
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.

virtual int BIAS::NodeInfo::XMLIn ( const xmlNodePtr  Node,
BIAS::XMLIO XMLObject 
)
inlinevirtual

derived classes must implement this to read everything in Node into (*this).

Called by XMLRead of XMLBase.

Returns
0 on success, <0 on error

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().

virtual int BIAS::NodeInfo::XMLOut ( const xmlNodePtr  Node,
BIAS::XMLIO XMLObject 
) const
inlinevirtual

derived classes must implement this to write the code of (*this) into the XML tree.

Called by XMLRead of XMLBase.

Parameters
nodealways 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.

int XMLBase::XMLRead ( const std::string &  Filename)
inherited
int XMLBase::XMLReadFromString ( const std::string &  str)
inherited

reconstruct xml tree from string

Author
evers
Examples:
ExampleProjection.cpp.

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().

int XMLBase::XMLWrite ( const std::string &  Filename,
int  CompressionLevel = 0,
bool  AutoAddCompressionSuffix = true,
std::string  encoding = "UTF-8" 
) const
inherited
int XMLBase::XMLWriteToString ( std::string &  str,
std::string  encoding = "UTF-8" 
) const
inherited

serialize xml tree to string

Author
evers
Examples:
ExampleProjection.cpp.

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().

Member Data Documentation

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.

Referenced by XMLIn(), and XMLOut().

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.

Referenced by XMLIn(), and XMLOut().

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().


The documentation for this struct was generated from the following file: