Basic Image AlgorithmS Library  2.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
BIAS::SceneText Class Reference

wrapping bias::drawtextgl to BIAS::Scene More...

#include <GLviewer/Scenes/SceneText.hh>

+ Inheritance diagram for BIAS::SceneText:
+ Collaboration diagram for BIAS::SceneText:

Public Types

enum  EChannel { C_BothMono, C_LeftOnly, C_RightOnly, C_BothStereo }
 

Public Member Functions

void AddDebugLevel (const long int lv)
 
void AddDebugLevel (const std::string &name)
 
unsigned int AddText (const BIAS::HomgPoint3D &textPositions, const std::string &textContents, const BIAS::RGBf &colors)
 
void ApplyTimeStep (const double &delta=1.0, const BIAS::Vector3< double > &gravity=BIAS::Vector3< double >(0,-9.81, 0), const double &frictioncoefficient=0.999)
 change position using a small time step of delta seconds and change velocity using gravity vector in m/s^2 More...
 
void Clear ()
 
std::list< BIAS::HomgPoint3DCornersFromBoundingBox (const BIAS::Vector3< double > &b1, const BIAS::Vector3< double > &b2)
 
bool DebugLevelIsSet (const long int lv) const
 
bool DebugLevelIsSet (const std::string &name) const
 
void DumpInfo () const
 dump info about the scene More...
 
std::list< BIAS::HomgPlane3DFacesFromBoundingBox (const BIAS::Vector3< double > &b1, const BIAS::Vector3< double > &b2)
 
enum EChannel GetActiveChannel () const
 Returns the active color channel. More...
 
virtual void GetBoundingBox (BIAS::Vector3< double > &themin, BIAS::Vector3< double > &themax)
 Determine and return the bouning box of all elements of the scene. More...
 
int GetDebugLevel () const
 
std::ostream & GetDebugStream () const
 
void GetDebugStream (std::ostream &os) const
 
double GetElasticity ()
 returns the elasticity value More...
 
virtual
GLProjectionParametersInterface
GetGLProjectionParametersInterface ()
 Get the camera as projectionparametersinterface, can be of type GLProjection of of any from GLProjectionParametersBase derived class. More...
 
bool GetGravityImmunity () const
 is this scene accelerated by gravity ? More...
 
void GetMomentum (double &mass, BIAS::Vector3< double > &velocity) const
 get mass and velocity in m/s More...
 
POINT_DRAW_STYLE GetPointDrawStyle ()
 Get the drawing style for points. More...
 
TRIANGLEMESH_DRAW_STYLE GetTriangleMeshDrawStyle ()
 Get the drawing style for triangles. More...
 
virtual bool HasBoundingBoxCollision (SceneBase *otherScene)
 check if bounding boxes of two scenes overlap More...
 
bool IsActive () const
 Returns whether the scene is active or not. More...
 
virtual void MoveScene (const double &delta=1.0)
 this moves the scene (no rotation yet) More...
 
long int Name2DebugLevel (const std::string &name) const
 looks up a debuglevel in the internal map, returns 0 if not found More...
 
long int NewDebugLevel (const std::string &name)
 creates a new debuglevel More...
 
virtual void PerformCollision (SceneBase *otherscene, const BIAS::Vector3< double > &contactnormal=BIAS::Vector3< double >(-1e10,-1e10,-1e10))
 compute momentum of each scene after collision More...
 
void PrintDebugLevel (std::ostream &os=std::cout) const
 
void RemoveDebugLevel (const long int lv)
 
void RemoveDebugLevel (const std::string &name)
 
void RemoveText (unsigned int)
 
virtual void Render ()
 this is the entry point seen from GLProjectionParametersBase. More...
 
virtual void RenderBoundingBox ()
 render the bounding box of the scene using gl-lines More...
 
virtual void ResetSelection ()
 Reset the selection, overwrite to react on calls to this function in derived classes. More...
 
 SceneText (bool MakeDemoText=true)
 
virtual bool SelectObjectAt (BIAS::Vector3< double > &p)
 Select a scene element/primitive at position p. More...
 
void SetActive (bool b)
 Set whether the scene is active or not. More...
 
void SetActiveChannel (const enum EChannel channel)
 Set a color channel active. More...
 
void SetColorMask (bool red=true, bool green=true, bool blue=true, bool alpha=true)
 sets a color mask for the scene rendering More...
 
void SetContext (RenderContextBase *c)
 
void SetDebugLevel (const long int lv)
 
void SetDebugLevel (const std::string &name)
 
void SetDebugStream (const std::ostream &os)
 
void SetElasticity (const double &elas)
 set collision behaviour: 1.0=elastic, no energy is lost, >1 superelastic (requires energy from outside) <1 plastic, converts kinetic into other energy More...
 
virtual void SetGLProjectionParametersInterface (GLProjectionParametersInterface *nc)
 Set the camera as projectionparametersinterface, can be of type GLProjection of of any from GLProjectionParametersBase derived class. More...
 
void SetGravityImmunity (bool i)
 set behaviour with respect to gravity More...
 
void SetMomentum (const double &mass, const BIAS::Vector3< double > &velocity)
 set mass and velocity in m/s More...
 
void SetPointDrawStyle (POINT_DRAW_STYLE style)
 Set the drawing style for points. More...
 
virtual void SetRenderBoundingBox (bool render)
 Set whether to render the boundign box or not. More...
 
void SetText (const std::vector< BIAS::HomgPoint3D > &textPositions, const std::vector< std::string > &textContents, const std::vector< BIAS::RGBf > &colors)
 
void SetTriangleMeshDrawStyle (TRIANGLEMESH_DRAW_STYLE style)
 Set the drawing style for triangles. More...
 
void ShowDebugLevel (std::ostream &os=std::cout) const
 prints all internally known debuglevels More...
 
virtual double TimeToContact (SceneBase *otherScene, BIAS::Vector3< double > &collisionpoint)
 compute time to contact of bounding boxes More...
 
virtual void UpdateCameraRelatedState ()
 Method is called by GLProjection if its params have changed. More...
 
void UpdateText (unsigned int, const BIAS::HomgPoint3D &textPositions, const std::string &textContents, const BIAS::RGBf &colors)
 
xmlNodePtr XMLAdd (const xmlNodePtr Node, XMLIO &XMLObject) const
 call this to add the class to a node of a given 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...
 
virtual ~SceneText ()
 

Static Public Member Functions

static void AnimationAndCollision (std::vector< SceneBase * > scenes, const BIAS::Vector3< double > &gravity=BIAS::Vector3< double >(0, 10, 0), const double &friction=0.999)
 call this method for a vector of scenes to solve the collision problem. More...
 
static double GetAnimationSpeed ()
 get time quantization for animations More...
 
static long int GetGlobalDebugLevel ()
 
static void SetAnimationSpeed (double s)
 set time quantization for animations More...
 
static void SetGlobalDebugLevel (long int lev)
 

Protected Member Functions

long ConsumeNextFreeDebuglevel_ ()
 returns the next available debuglevel More...
 
virtual void Draw ()
 To do anything usefull, overload this method, assume context is ready and draw. More...
 
virtual int XMLGetClassName (std::string &TopLevelTag, double &Version) const
 specialization of XML block name function More...
 
virtual int XMLIn (const xmlNodePtr Node, BIAS::XMLIO &XMLObject)
 specialization of XML read function More...
 
virtual int XMLOut (const xmlNodePtr Node, BIAS::XMLIO &XMLObject) const
 specialization of XML write function More...
 

Protected Attributes

long int _liDebugLevel
 
long int _liNextDebugLevel
 new concept, debuglevel are managed here in the debug class More...
 
std::map< std::string, long int > _String2Debuglevel
 
enum EChannel ActiveChannel_
 
BIAS::GLProjectionParametersInterfacecamera_
 
GLboolean colorMask_ [4]
 
RenderContextBaseContext_
 
POINT_DRAW_STYLE dPointDrawStyle_
 
BIAS::DrawTextGL drawer_
 
TRIANGLEMESH_DRAW_STYLE dTriangleMeshDrawStyle_
 
double elasticity_
 the more elastic the less enegry is lost in collisions More...
 
int fontHeight_
 
std::string fontName_
 
bool gravityImmunity_
 if true, scene is not accelerated by gravity More...
 
bool IsActive_
 
bool isInitialized_
 
double mass_
 for collision: More...
 
unsigned int NextIndex_
 
bool renderBoundingBox_
 show the bounding box ? More...
 
std::map< unsigned int,
BIAS::RGBf
textColors_
 
std::map< unsigned int,
std::string > 
textContents_
 
std::map< unsigned int,
BIAS::HomgPoint3D
textPositions_
 
BIAS::Vector3< double > velocity_
 scene velocity in m/s More...
 

Static Protected Attributes

static std::ostream _zDebugStream
 
static double animationSpeed_ = 1.0
 how long does a single step in time take for animations ? More...
 
static long int GlobalDebugLevel = 0
 

Detailed Description

wrapping bias::drawtextgl to BIAS::Scene

Author
koeser

Definition at line 33 of file SceneText.hh.

Member Enumeration Documentation

enum BIAS::SceneBase::EChannel
inherited
Enumerator
C_BothMono 
C_LeftOnly 
C_RightOnly 
C_BothStereo 

Definition at line 71 of file SceneBase.hh.

Constructor & Destructor Documentation

virtual BIAS::SceneText::~SceneText ( )
inlinevirtual

Definition at line 39 of file SceneText.hh.

SceneText::SceneText ( bool  MakeDemoText = true)

Member Function Documentation

void BIAS::Debug::AddDebugLevel ( const long int  lv)
inlineinherited
void BIAS::Debug::AddDebugLevel ( const std::string &  name)
inlineinherited

Definition at line 362 of file Debug.hh.

unsigned int SceneText::AddText ( const BIAS::HomgPoint3D textPositions,
const std::string &  textContents,
const BIAS::RGBf colors 
)

Definition at line 34 of file SceneText.cpp.

References NextIndex_, textColors_, textContents_, and textPositions_.

Referenced by SetText(), and XMLIn().

void SceneBase::AnimationAndCollision ( std::vector< SceneBase * >  scenes,
const BIAS::Vector3< double > &  gravity = BIAS::Vector3<double>(0,10,0),
const double &  friction = 0.999 
)
staticinherited

call this method for a vector of scenes to solve the collision problem.

STATIC and THUS CONST !!!

Definition at line 407 of file SceneBase.cpp.

References BIAS::SceneBase::animationSpeed_, BIAS::SceneBase::GetGravityImmunity(), and BIAS::SceneBase::HasBoundingBoxCollision().

void SceneBase::ApplyTimeStep ( const double &  delta = 1.0,
const BIAS::Vector3< double > &  gravity = BIAS::Vector3<double>(0,-9.81,0),
const double &  frictioncoefficient = 0.999 
)
inherited

change position using a small time step of delta seconds and change velocity using gravity vector in m/s^2

No collision detection and handling here, since other scenes are unknown at this level.

Definition at line 326 of file SceneBase.cpp.

References BIAS::SceneBase::gravityImmunity_, BIAS::SceneBase::mass_, BIAS::SceneBase::MoveScene(), BIAS::Vector3< T >::NormL2(), BIAS::Vector3< T >::ScalarProduct(), and BIAS::SceneBase::velocity_.

void BIAS::SceneText::Clear ( )
inline

Definition at line 58 of file SceneText.hh.

long BIAS::Debug::ConsumeNextFreeDebuglevel_ ( )
inlineprotectedinherited

returns the next available debuglevel

Author
woelk 09/2006

Definition at line 521 of file Debug.hh.

std::list< BIAS::HomgPoint3D > SceneBase::CornersFromBoundingBox ( const BIAS::Vector3< double > &  b1,
const BIAS::Vector3< double > &  b2 
)
inherited
bool BIAS::Debug::DebugLevelIsSet ( const long int  lv) const
inlineinherited
bool BIAS::Debug::DebugLevelIsSet ( const std::string &  name) const
inlineinherited

Definition at line 350 of file Debug.hh.

void SceneText::Draw ( )
protectedvirtual

To do anything usefull, overload this method, assume context is ready and draw.

Draw() is called from Render() only if the scene object is active (IsActive == true).

Implements BIAS::SceneBase.

Definition at line 73 of file SceneText.cpp.

References Context_, drawer_, fontHeight_, fontName_, BIAS::DrawTextGL::InitFont(), isInitialized_, BIAS::DrawTextGL::Print3D(), textColors_, textContents_, and textPositions_.

void SceneBase::DumpInfo ( ) const
inherited
std::list< BIAS::HomgPlane3D > SceneBase::FacesFromBoundingBox ( const BIAS::Vector3< double > &  b1,
const BIAS::Vector3< double > &  b2 
)
inherited
enum EChannel BIAS::SceneBase::GetActiveChannel ( ) const
inlineinherited

Returns the active color channel.

Definition at line 132 of file SceneBase.hh.

static double BIAS::SceneBase::GetAnimationSpeed ( )
inlinestaticinherited

get time quantization for animations

Definition at line 247 of file SceneBase.hh.

virtual void BIAS::SceneBase::GetBoundingBox ( BIAS::Vector3< double > &  themin,
BIAS::Vector3< double > &  themax 
)
inlinevirtualinherited
int BIAS::Debug::GetDebugLevel ( ) const
inlineinherited
std::ostream& BIAS::Debug::GetDebugStream ( ) const
inlineinherited

Definition at line 405 of file Debug.hh.

void BIAS::Debug::GetDebugStream ( std::ostream &  os) const
inlineinherited

Definition at line 414 of file Debug.hh.

double BIAS::SceneBase::GetElasticity ( )
inlineinherited

returns the elasticity value

Definition at line 184 of file SceneBase.hh.

static long int BIAS::Debug::GetGlobalDebugLevel ( )
inlinestaticinherited

Definition at line 431 of file Debug.hh.

virtual GLProjectionParametersInterface* BIAS::SceneBase::GetGLProjectionParametersInterface ( )
inlinevirtualinherited

Get the camera as projectionparametersinterface, can be of type GLProjection of of any from GLProjectionParametersBase derived class.

Definition at line 85 of file SceneBase.hh.

Referenced by BIAS::SceneGridGround::Draw(), and BIAS::SceneOpenSceneGraph::RightMouseDoubleClicked().

bool BIAS::SceneBase::GetGravityImmunity ( ) const
inlineinherited

is this scene accelerated by gravity ?

Definition at line 194 of file SceneBase.hh.

Referenced by BIAS::SceneBase::AnimationAndCollision().

void BIAS::SceneBase::GetMomentum ( double &  mass,
BIAS::Vector3< double > &  velocity 
) const
inlineinherited

get mass and velocity in m/s

Definition at line 162 of file SceneBase.hh.

POINT_DRAW_STYLE BIAS::SceneBase::GetPointDrawStyle ( )
inlineinherited

Get the drawing style for points.

Definition at line 100 of file SceneBase.hh.

TRIANGLEMESH_DRAW_STYLE BIAS::SceneBase::GetTriangleMeshDrawStyle ( )
inlineinherited

Get the drawing style for triangles.

Definition at line 106 of file SceneBase.hh.

bool SceneBase::HasBoundingBoxCollision ( SceneBase otherScene)
virtualinherited

check if bounding boxes of two scenes overlap

Definition at line 78 of file SceneBase.cpp.

References BIAS::SceneBase::CornersFromBoundingBox(), BIAS::SceneBase::FacesFromBoundingBox(), and BIAS::SceneBase::GetBoundingBox().

Referenced by BIAS::SceneBase::AnimationAndCollision().

bool BIAS::SceneBase::IsActive ( ) const
inlineinherited

Returns whether the scene is active or not.

Definition at line 127 of file SceneBase.hh.

void SceneBase::MoveScene ( const double &  delta = 1.0)
virtualinherited

this moves the scene (no rotation yet)

Reimplemented in BIAS::SceneThreeDOutWrapper.

Definition at line 345 of file SceneBase.cpp.

Referenced by BIAS::SceneBase::ApplyTimeStep().

long int BIAS::Debug::Name2DebugLevel ( const std::string &  name) const
inlineinherited

looks up a debuglevel in the internal map, returns 0 if not found

Author
woelk 09/2006

Definition at line 454 of file Debug.hh.

long int BIAS::Debug::NewDebugLevel ( const std::string &  name)
inlineinherited
void SceneBase::PerformCollision ( SceneBase otherscene,
const BIAS::Vector3< double > &  contactnormal = BIAS::Vector3<double>(-1e10,-1e10,-1e10) 
)
virtualinherited

compute momentum of each scene after collision

see http://de.wikipedia.org/wiki/Sto%C3%9F_(Physik)

Parameters
contactnormalthe normal of the plane between the two objects at the moment they collide (imagine a piece of paper in between)

Definition at line 218 of file SceneBase.cpp.

References BIAS::SceneBase::elasticity_, BIAS::SceneBase::GetBoundingBox(), BIAS::SceneBase::gravityImmunity_, BIAS::SceneBase::mass_, BIAS::Vector3< T >::Normalize(), BIAS::Vector3< T >::NormL2(), BIAS::Vector3< T >::ScalarProduct(), and BIAS::SceneBase::velocity_.

void BIAS::Debug::PrintDebugLevel ( std::ostream &  os = std::cout) const
inlineinherited

Definition at line 383 of file Debug.hh.

void BIAS::Debug::RemoveDebugLevel ( const long int  lv)
inlineinherited

Definition at line 369 of file Debug.hh.

void BIAS::Debug::RemoveDebugLevel ( const std::string &  name)
inlineinherited

Definition at line 376 of file Debug.hh.

void SceneText::RemoveText ( unsigned int  i)

Definition at line 53 of file SceneText.cpp.

References textColors_, textContents_, and textPositions_.

void SceneBase::Render ( )
virtualinherited

this is the entry point seen from GLProjectionParametersBase.

It is called whenever redrawing is required. It checks the IsActive flag and eventually call Draw().

Definition at line 26 of file SceneBase.cpp.

References BIAS::SceneBase::colorMask_, BIAS::SceneBase::Draw(), BIAS::SceneBase::IsActive_, BIAS::SceneBase::RenderBoundingBox(), and BIAS::SceneBase::renderBoundingBox_.

Referenced by BIAS::GLProjectionParametersBase::EndDraw_().

void SceneBase::RenderBoundingBox ( )
virtualinherited

render the bounding box of the scene using gl-lines

Definition at line 362 of file SceneBase.cpp.

References BIAS::SceneBase::CornersFromBoundingBox(), and BIAS::SceneBase::GetBoundingBox().

Referenced by BIAS::SceneBase::Render().

virtual void BIAS::SceneBase::ResetSelection ( )
inlinevirtualinherited

Reset the selection, overwrite to react on calls to this function in derived classes.

Definition at line 95 of file SceneBase.hh.

virtual bool BIAS::SceneBase::SelectObjectAt ( BIAS::Vector3< double > &  p)
inlinevirtualinherited

Select a scene element/primitive at position p.

Overwrite in derived class to react to selections

Parameters
p[in]: position to select object at.
Returns
false if nothing could be done, true on success

Definition at line 92 of file SceneBase.hh.

void BIAS::SceneBase::SetActive ( bool  b)
inlineinherited

Set whether the scene is active or not.

Definition at line 129 of file SceneBase.hh.

void BIAS::SceneBase::SetActiveChannel ( const enum EChannel  channel)
inlineinherited

Set a color channel active.

Definition at line 135 of file SceneBase.hh.

static void BIAS::SceneBase::SetAnimationSpeed ( double  s)
inlinestaticinherited

set time quantization for animations

Definition at line 242 of file SceneBase.hh.

void BIAS::SceneBase::SetColorMask ( bool  red = true,
bool  green = true,
bool  blue = true,
bool  alpha = true 
)
inlineinherited

sets a color mask for the scene rendering

Definition at line 139 of file SceneBase.hh.

Referenced by BIAS::SceneBase::SceneBase().

void BIAS::SceneText::SetContext ( RenderContextBase c)
inline

Definition at line 43 of file SceneText.hh.

void BIAS::Debug::SetDebugLevel ( const long int  lv)
inlineinherited
void BIAS::Debug::SetDebugLevel ( const std::string &  name)
inlineinherited

Definition at line 325 of file Debug.hh.

void BIAS::Debug::SetDebugStream ( const std::ostream &  os)
inlineinherited

Definition at line 398 of file Debug.hh.

void BIAS::SceneBase::SetElasticity ( const double &  elas)
inlineinherited

set collision behaviour: 1.0=elastic, no energy is lost, >1 superelastic (requires energy from outside) <1 plastic, converts kinetic into other energy

Definition at line 179 of file SceneBase.hh.

static void BIAS::Debug::SetGlobalDebugLevel ( long int  lev)
inlinestaticinherited

Definition at line 424 of file Debug.hh.

virtual void BIAS::SceneBase::SetGLProjectionParametersInterface ( GLProjectionParametersInterface nc)
inlinevirtualinherited

Set the camera as projectionparametersinterface, can be of type GLProjection of of any from GLProjectionParametersBase derived class.

Definition at line 80 of file SceneBase.hh.

Referenced by BIAS::View::AppendScene(), BIAS::RenderContextBase::AppendScene(), and BIAS::View::InsertSceneAt().

void BIAS::SceneBase::SetGravityImmunity ( bool  i)
inlineinherited

set behaviour with respect to gravity

Definition at line 189 of file SceneBase.hh.

void BIAS::SceneBase::SetMomentum ( const double &  mass,
const BIAS::Vector3< double > &  velocity 
)
inlineinherited

set mass and velocity in m/s

Definition at line 168 of file SceneBase.hh.

void BIAS::SceneBase::SetPointDrawStyle ( POINT_DRAW_STYLE  style)
inlineinherited

Set the drawing style for points.

Definition at line 98 of file SceneBase.hh.

virtual void BIAS::SceneBase::SetRenderBoundingBox ( bool  render)
inlinevirtualinherited

Set whether to render the boundign box or not.

Definition at line 109 of file SceneBase.hh.

void SceneText::SetText ( const std::vector< BIAS::HomgPoint3D > &  textPositions,
const std::vector< std::string > &  textContents,
const std::vector< BIAS::RGBf > &  colors 
)

Definition at line 44 of file SceneText.cpp.

References AddText().

void BIAS::SceneBase::SetTriangleMeshDrawStyle ( TRIANGLEMESH_DRAW_STYLE  style)
inlineinherited

Set the drawing style for triangles.

Definition at line 103 of file SceneBase.hh.

void BIAS::Debug::ShowDebugLevel ( std::ostream &  os = std::cout) const
inlineinherited

prints all internally known debuglevels

Author
woelk 09/2006

Definition at line 496 of file Debug.hh.

double SceneBase::TimeToContact ( SceneBase otherScene,
BIAS::Vector3< double > &  collisionpoint 
)
virtualinherited
virtual void BIAS::SceneBase::UpdateCameraRelatedState ( )
inlinevirtualinherited

Method is called by GLProjection if its params have changed.

The method should then take necassary steps for adapting the rendering state. Needed information should then be fetched through the camera_ pointer. This method is only called if the abstract set of parameters has changed, say the parameters that are also contained in BIAS::Projection

Definition at line 119 of file SceneBase.hh.

void SceneText::UpdateText ( unsigned int  index,
const BIAS::HomgPoint3D textPositions,
const std::string &  textContents,
const BIAS::RGBf colors 
)

Definition at line 61 of file SceneText.cpp.

References textColors_, textContents_, and textPositions_.

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

int SceneText::XMLGetClassName ( std::string &  TopLevelTag,
double &  Version 
) const
protectedvirtual

specialization of XML block name function

Implements BIAS::XMLBase.

Definition at line 137 of file SceneText.cpp.

int SceneText::XMLIn ( const xmlNodePtr  Node,
BIAS::XMLIO XMLObject 
)
protectedvirtual
int SceneText::XMLOut ( const xmlNodePtr  Node,
BIAS::XMLIO XMLObject 
) const
protectedvirtual

specialization of XML write function

Implements BIAS::XMLBase.

Definition at line 144 of file SceneText.cpp.

References BIAS::XMLIO::addAttribute(), BIAS::XMLIO::addChildNode(), BIAS::XMLIO::addContent(), textColors_, textContents_, and textPositions_.

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

long int BIAS::Debug::_liDebugLevel
protectedinherited

Definition at line 510 of file Debug.hh.

Referenced by BIAS::Debug::operator=(), and BIAS::ImageBase::operator=().

long int BIAS::Debug::_liNextDebugLevel
protectedinherited

new concept, debuglevel are managed here in the debug class

Definition at line 516 of file Debug.hh.

Referenced by BIAS::Debug::operator=().

std::map<std::string, long int> BIAS::Debug::_String2Debuglevel
protectedinherited

Definition at line 517 of file Debug.hh.

Referenced by BIAS::Debug::operator=().

std::ostream BIAS::Debug::_zDebugStream
staticprotectedinherited

Definition at line 511 of file Debug.hh.

Referenced by BIAS::Debug::operator=().

enum EChannel BIAS::SceneBase::ActiveChannel_
protectedinherited

Definition at line 265 of file SceneBase.hh.

Referenced by BIAS::SceneBase::DumpInfo().

double SceneBase::animationSpeed_ = 1.0
staticprotectedinherited

how long does a single step in time take for animations ?

Definition at line 254 of file SceneBase.hh.

Referenced by BIAS::SceneBase::AnimationAndCollision().

BIAS::GLProjectionParametersInterface* BIAS::SceneBase::camera_
protectedinherited

Definition at line 266 of file SceneBase.hh.

Referenced by BIAS::SceneBase::DumpInfo().

GLboolean BIAS::SceneBase::colorMask_[4]
protectedinherited

Definition at line 267 of file SceneBase.hh.

Referenced by BIAS::SceneBase::DumpInfo(), and BIAS::SceneBase::Render().

RenderContextBase* BIAS::SceneText::Context_
protected

Definition at line 91 of file SceneText.hh.

Referenced by Draw(), and SceneText().

POINT_DRAW_STYLE BIAS::SceneBase::dPointDrawStyle_
protectedinherited

Definition at line 260 of file SceneBase.hh.

Referenced by BIAS::SceneBase::SceneBase().

BIAS::DrawTextGL BIAS::SceneText::drawer_
protected

Definition at line 81 of file SceneText.hh.

Referenced by Draw().

TRIANGLEMESH_DRAW_STYLE BIAS::SceneBase::dTriangleMeshDrawStyle_
protectedinherited

Definition at line 261 of file SceneBase.hh.

Referenced by BIAS::SceneBase::SceneBase().

double BIAS::SceneBase::elasticity_
protectedinherited

the more elastic the less enegry is lost in collisions

Definition at line 276 of file SceneBase.hh.

Referenced by BIAS::SceneBase::DumpInfo(), BIAS::SceneBase::PerformCollision(), and BIAS::SceneBase::SceneBase().

int BIAS::SceneText::fontHeight_
protected

Definition at line 89 of file SceneText.hh.

Referenced by Draw(), and SceneText().

std::string BIAS::SceneText::fontName_
protected

Definition at line 88 of file SceneText.hh.

Referenced by Draw(), and SceneText().

long int BIAS::Debug::GlobalDebugLevel = 0
staticprotectedinherited

Definition at line 513 of file Debug.hh.

bool BIAS::SceneBase::gravityImmunity_
protectedinherited

if true, scene is not accelerated by gravity

Definition at line 274 of file SceneBase.hh.

Referenced by BIAS::SceneBase::ApplyTimeStep(), BIAS::SceneBase::PerformCollision(), and BIAS::SceneBase::SceneBase().

bool BIAS::SceneBase::IsActive_
protectedinherited

Definition at line 263 of file SceneBase.hh.

Referenced by BIAS::SceneBase::DumpInfo(), and BIAS::SceneBase::Render().

bool BIAS::SceneText::isInitialized_
protected

Definition at line 90 of file SceneText.hh.

Referenced by Draw().

double BIAS::SceneBase::mass_
protectedinherited
unsigned int BIAS::SceneText::NextIndex_
protected

Definition at line 87 of file SceneText.hh.

Referenced by AddText(), and SceneText().

bool BIAS::SceneBase::renderBoundingBox_
protectedinherited

show the bounding box ?

Definition at line 278 of file SceneBase.hh.

Referenced by BIAS::SceneBase::Render(), and BIAS::SceneBase::SceneBase().

std::map<unsigned int,BIAS::RGBf> BIAS::SceneText::textColors_
protected

Definition at line 86 of file SceneText.hh.

Referenced by AddText(), Draw(), RemoveText(), SceneText(), UpdateText(), XMLIn(), and XMLOut().

std::map<unsigned int,std::string> BIAS::SceneText::textContents_
protected

Definition at line 85 of file SceneText.hh.

Referenced by AddText(), Draw(), RemoveText(), SceneText(), UpdateText(), XMLIn(), and XMLOut().

std::map<unsigned int,BIAS::HomgPoint3D> BIAS::SceneText::textPositions_
protected

Definition at line 84 of file SceneText.hh.

Referenced by AddText(), Draw(), RemoveText(), SceneText(), UpdateText(), XMLIn(), and XMLOut().

BIAS::Vector3<double> BIAS::SceneBase::velocity_
protectedinherited

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