class Object2D


Public Fields

[more]vector<Line2D> line2d
Proper geometry variables
[more]vector<Lines2D> lines2d
[more]vector<Circle2D> circle2d
[more]vector<Object2D> objects
[more]vector<Text2D> text2d
hierarchy
[more]vector<ClipPlane2D> clipplanes

Public Methods

[more] Object2D(FontManager* f)
Constructors / Destructors
[more]virtual ~Object2D()
Object2D();
[more]inline void setName(const string &n)
Other public methods
[more]inline string getName(void) const
[more]inline void SetPosition(const Vector2D &p)
Position/Orientation functions
[more]inline void SetPivot(const Vector2D &p)
[more]void SetColor(double r, double g, double b, double a)
[more]inline void SetRotation(double a)
[more]inline void SetPositionAndRotation(const Vector2D &p, double a)
[more]inline void SetFontManager(FontManager* f)
[more]void GetOpenGLTransformationMatrix(double* matrix) const
OpenGL related functions
[more]void glDraw(void)
[more]void glPosAndRotateObject(void)
[more]inline unsigned int getNumLine2D(void)
Geometry objects/Methods
[more]inline void addLine2D(const Line2D &l)
[more]inline void addLine2D()
[more]inline unsigned int getNumLines2D(void)
[more]inline void addLines2D(const Lines2D &l)
[more]inline void addLines2D()
[more]int LoadXML(char* file_name)
Load an object from a XML file
[more]int ParseXML(xmlDocPtr doc, xmlNodePtr cur)
[more]void Out(void)
[more]void SetViewable(bool b)

Private Fields

[more]string name
[more]Vector2D Position
Position/Orientation
[more]Vector2D Pivot
[more]double RotationAngle
Pivot: Vector desde el origen del modelo (Posicion) hasta el punto de pivote
[more]float color[4]
[more]FontManager* fontmanager
[more]bool viewable
Reference to a generic fontmanager of View2D needed to draw text

Private Methods

[more]void addCipPlane()


Documentation

o Object2D(FontManager* f)
Constructors / Destructors

ovirtual ~Object2D()
Object2D();

oinline void setName(const string &n)
Other public methods

oinline string getName(void) const

oinline void SetPosition(const Vector2D &p)
Position/Orientation functions

oinline void SetPivot(const Vector2D &p)

ovoid SetColor(double r, double g, double b, double a)

oinline void SetRotation(double a)

oinline void SetPositionAndRotation(const Vector2D &p, double a)

oinline void SetFontManager(FontManager* f)

ovoid GetOpenGLTransformationMatrix(double* matrix) const
OpenGL related functions

ovoid glDraw(void)

ovoid glPosAndRotateObject(void)

oinline unsigned int getNumLine2D(void)
Geometry objects/Methods

oinline void addLine2D(const Line2D &l)

oinline void addLine2D()

oinline unsigned int getNumLines2D(void)

oinline void addLines2D(const Lines2D &l)

oinline void addLines2D()

oint LoadXML(char* file_name)
Load an object from a XML file

oint ParseXML(xmlDocPtr doc, xmlNodePtr cur)

ovoid Out(void)

ovector<Line2D> line2d
Proper geometry variables

ovector<Lines2D> lines2d

ovector<Circle2D> circle2d

ovector<Object2D> objects

ovector<Text2D> text2d
hierarchy

ovector<ClipPlane2D> clipplanes

ovoid SetViewable(bool b)

ostring name

oVector2D Position
Position/Orientation

oVector2D Pivot

odouble RotationAngle
Pivot: Vector desde el origen del modelo (Posicion) hasta el punto de pivote

ofloat color[4]

ovoid addCipPlane()

oFontManager* fontmanager

obool viewable
Reference to a generic fontmanager of View2D needed to draw text


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.