openrave.org

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Attributes | List of all members
OpenRAVE::xmlreaders::GeometryInfoReader Class Reference

create a xml parser for trajectories More...

#include <xmlreaders.h>

Inheritance diagram for OpenRAVE::xmlreaders::GeometryInfoReader:
Inheritance graph
[legend]
Collaboration diagram for OpenRAVE::xmlreaders::GeometryInfoReader:
Collaboration graph
[legend]

Public Member Functions

 GeometryInfoReader (KinBody::GeometryInfoPtr geom=KinBody::GeometryInfoPtr(), const AttributesList &atts=AttributesList())
 
virtual ProcessElement startElement (const std::string &name, const AttributesList &atts)
 
virtual bool endElement (const std::string &name)
 
virtual void characters (const std::string &ch)
 
KinBody::GeometryInfoPtr GetGeometryInfo () const
 
bool IsOverwriteDiffuse () const
 
bool IsOverwriteAmbient () const
 
bool IsOverwriteTransparency () const
 
- Public Member Functions inherited from OpenRAVE::BaseXMLReader
 BaseXMLReader ()
 
virtual ~BaseXMLReader ()
 
virtual XMLReadablePtr GetReadable ()
 

Protected Attributes

KinBody::GeometryInfoPtr _pgeom
 
std::stringstream _ss
 
BaseXMLReaderPtr _pcurreader
 
bool _bOverwriteDiffuse
 
bool _bOverwriteAmbient
 
bool _bOverwriteTransparency
 

Additional Inherited Members

- Public Types inherited from OpenRAVE::BaseXMLReader
enum  ProcessElement { PE_Pass =0, PE_Support =1, PE_Ignore =2 }
 
- Public Attributes inherited from OpenRAVE::BaseXMLReader
std::string _filename
 XML filename/resource used for this class (can be empty)
 

Detailed Description

create a xml parser for trajectories

Definition at line 87 of file xmlreaders.h.

Constructor & Destructor Documentation

OpenRAVE::xmlreaders::GeometryInfoReader::GeometryInfoReader ( KinBody::GeometryInfoPtr  geom = KinBody::GeometryInfoPtr(),
const AttributesList atts = AttributesList() 
)
Parameters
envthe environment used to create the trajectory
trajcan optionally pass a trajectory to initialize if need to read into an existing trajectory, but the pointer can be empty
attsattributes passed from <trajectory> tag

Member Function Documentation

virtual void OpenRAVE::xmlreaders::GeometryInfoReader::characters ( const std::string &  ch)
virtual

gets called for all data in between tags.

Parameters
cha string to the data

Implements OpenRAVE::BaseXMLReader.

virtual bool OpenRAVE::xmlreaders::GeometryInfoReader::endElement ( const std::string &  name)
virtual

Gets called at the end of each "</type>" expression. In this case, name is "type"

Parameters
nameof the tag, will be always lower case
Returns
true if XMLReader has finished parsing (one condition is that name==_fieldname) , otherwise false

Implements OpenRAVE::BaseXMLReader.

KinBody::GeometryInfoPtr OpenRAVE::xmlreaders::GeometryInfoReader::GetGeometryInfo ( ) const
inline

Definition at line 98 of file xmlreaders.h.

bool OpenRAVE::xmlreaders::GeometryInfoReader::IsOverwriteAmbient ( ) const
inline

Definition at line 105 of file xmlreaders.h.

bool OpenRAVE::xmlreaders::GeometryInfoReader::IsOverwriteDiffuse ( ) const
inline

Definition at line 102 of file xmlreaders.h.

bool OpenRAVE::xmlreaders::GeometryInfoReader::IsOverwriteTransparency ( ) const
inline

Definition at line 108 of file xmlreaders.h.

virtual ProcessElement OpenRAVE::xmlreaders::GeometryInfoReader::startElement ( const std::string &  name,
const AttributesList atts 
)
virtual

Gets called in the beginning of each "<type>" expression. In this case, name is "type"

Parameters
nameof the tag, will be always lower case
attsstring of attributes where the first std::string is the attribute name and second is the value
Returns
true if tag is accepted and this class will process it, otherwise false

Implements OpenRAVE::BaseXMLReader.

Member Data Documentation

bool OpenRAVE::xmlreaders::GeometryInfoReader::_bOverwriteAmbient
protected

Definition at line 116 of file xmlreaders.h.

bool OpenRAVE::xmlreaders::GeometryInfoReader::_bOverwriteDiffuse
protected

Definition at line 116 of file xmlreaders.h.

bool OpenRAVE::xmlreaders::GeometryInfoReader::_bOverwriteTransparency
protected

Definition at line 116 of file xmlreaders.h.

BaseXMLReaderPtr OpenRAVE::xmlreaders::GeometryInfoReader::_pcurreader
protected

Definition at line 114 of file xmlreaders.h.

KinBody::GeometryInfoPtr OpenRAVE::xmlreaders::GeometryInfoReader::_pgeom
protected

Definition at line 112 of file xmlreaders.h.

std::stringstream OpenRAVE::xmlreaders::GeometryInfoReader::_ss
protected

Definition at line 113 of file xmlreaders.h.


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