V-ART
dot.h
Go to the documentation of this file.
1 
5 #ifndef VART_DOT_H
6 #define VART_DOT_H
7 
8 #include "vart/graphicobj.h"
9 #include "vart/color.h"
10 #include "vart/point4d.h"
11 
12 namespace VART {
17  class Dot : public GraphicObj {
18  public:
19  // PUBLIC METHODS
21  Dot();
22 
24  Dot(const VART::Dot& dot);
25 
27  VART::Dot& operator=(const VART::Dot& dot);
28 
30  // this method, to avoid errors with VART::SceneNode::RecursiveCopy.
31  virtual VART::SceneNode * Copy();
32 
34  Dot(const Point4D& location);
35 
37  virtual void ComputeBoundingBox();
38 
39  // PUBLIC ATTRIBUTES
42 
44  float size; // FixMe: better turn it into a class attribute
45 
48 
49  protected:
51  virtual bool DrawInstanceOGL() const;
52  }; // end class declaration
53 } // end namespace
54 #endif
Base class for objects that compose a scene graph.
Definition: scenenode.h:25
Points and vectors using homogeneous coordinates.
Definition: point4d.h:22
float size
The size (in pixels) of the point on screen.
Definition: dot.h:44
Header file for V-ART class "GraphicObj".
VART::Dot & operator=(const VART::Dot &dot)
Copies all data from an dot to another.
Definition: dot.cpp:28
virtual VART::SceneNode * Copy()
Returns a copy of an dot. Every derived class must reimplements.
Definition: dot.cpp:37
RGBA color representation.
Definition: color.h:24
Point4D position
The point's position.
Definition: dot.h:41
Color color
The point's color.
Definition: dot.h:47
An scene node that is associated with a shape.
Definition: graphicobj.h:18
virtual bool DrawInstanceOGL() const
Draws the point.
Definition: dot.cpp:55
Dot()
Creates an initialized point.
Definition: dot.cpp:17
virtual void ComputeBoundingBox()
Computes the bounding box.
Definition: dot.cpp:49
Header file for V-ART class "Color".
A graphical point.
Definition: dot.h:17
Header file for V-ART class "Point4D".