V-ART
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
VART::Dot Class Reference

A graphical point. More...

#include <dot.h>

Inheritance diagram for VART::Dot:
VART::GraphicObj VART::SceneNode VART::MemoryObj

Public Member Functions

 Dot ()
 Creates an initialized point. More...
 
 Dot (const VART::Dot &dot)
 Creates a new copy of an dot. More...
 
VART::Dotoperator= (const VART::Dot &dot)
 Copies all data from an dot to another. More...
 
virtual VART::SceneNodeCopy ()
 Returns a copy of an dot. Every derived class must reimplements. More...
 
 Dot (const Point4D &location)
 Creates a point at a specific location. More...
 
virtual void ComputeBoundingBox ()
 Computes the bounding box. More...
 
- Public Member Functions inherited from VART::GraphicObj
 GraphicObj ()
 
void Show ()
 Makes the object visible. More...
 
void Hide ()
 Makes the object invisible. More...
 
void ToggleVisibility ()
 Toggles the object's visibility. More...
 
void ToggleRecVisibility ()
 Toggles the recursive object's visibility. More...
 
bool IsVisible ()
 Checks whether the object is visible. More...
 
void ComputeRecursiveBoundingBox ()
 Computes the recursive bounding box. More...
 
const BoundingBoxGetBoundingBox () const
 Returns the bounding box. More...
 
void SetBBoxVisibility (bool value)
 Sets the bounding box visibility. More...
 
void SetBBoxColor (VART::Color value)
 Sets the bounding box color of graphics object. More...
 
const BoundingBoxGetRecursiveBoundingBox () const
 Returns the recursive bounding box. More...
 
void ToggleBBoxVisibility ()
 Toggles the bounding box visibility. More...
 
void ToggleRecBBoxVisibility ()
 Toggles the recursive bounding box visibility. More...
 
unsigned int PickName () const
 Returns the pick name. More...
 
virtual void DrawForPicking () const
 Draws and object, setting pick info. More...
 
- Public Member Functions inherited from VART::SceneNode
 SceneNode ()
 Creates an uninitialized scene node. More...
 
 SceneNode (SceneNode &node)
 
virtual ~SceneNode ()
 
SceneNodeoperator= (const SceneNode &node)
 
virtual SceneNodeRecursiveCopy ()
 
const std::string & GetDescription () const
 Returns a copy of the object's description. More...
 
void SetDescription (const std::string &desc)
 Changes the object's description. More...
 
void AddChild (SceneNode &child)
 Add a child at the end of child list. More...
 
bool DetachChild (SceneNode *childPtr)
 Removes a child from the child list. More...
 
virtual bool DrawOGL () const
 Recursive drawing using OpenGL commands. More...
 
virtual TypeID GetID () const
 Returns type identification of the node. More...
 
void AutoDeleteChildren () const
 Deletes (dealocate memory) recursively all children marked as 'autoDelete'. More...
 
SceneNodeFindChildByName (const std::string &name) const
 Recusively searches its children for a given name. More...
 
std::list< SceneNode * > GetChilds ()
 
bool FindPathTo (SceneNode *targetPtr, SGPath *resultPtr) const
 Search target among children. More...
 
bool FindPathTo (const std::string &targetName, SGPath *resultPtr) const
 Search target among children. More...
 
int GetNodeTypeList (TypeID type, std::list< SceneNode * > &nodeList)
 Find all the nodes of with typeID 'type'. More...
 
virtual void TraverseDepthFirst (SNOperator *operatorPtr) const
 Process all children in depth-first order. More...
 
virtual void TraverseBreadthFirst (SNOperator *operatorPtr) const
 Process all children in breadth-first order. More...
 
virtual void LocateDepthFirst (SNLocator *locatorPtr) const
 Seaches for a particular scene node (depth first) More...
 
virtual void LocateBreadthFirst (SNLocator *locatorPtr) const
 Seaches for a particular scene node (breadth first) More...
 
virtual void XmlPrintOn (std::ostream &os, unsigned int indent) const
 Recursively outputs XML representation of the scene node. More...
 
- Public Member Functions inherited from VART::MemoryObj
 MemoryObj ()
 Default constructor. More...
 
 MemoryObj (const VART::MemoryObj &obj)
 Copy constructor. More...
 

Public Attributes

Point4D position
 The point's position. More...
 
float size
 The size (in pixels) of the point on screen. More...
 
Color color
 The point's color. More...
 
- Public Attributes inherited from VART::GraphicObj
ShowType howToShow
 Defines how to show the object. More...
 
- Public Attributes inherited from VART::MemoryObj
bool autoDelete
 

Protected Member Functions

virtual bool DrawInstanceOGL () const
 Draws the point. More...
 
- Protected Member Functions inherited from VART::SceneNode
bool RecursiveFindPathTo (SceneNode *targetPtr, SGPath *resultPtr) const
 Recursive auxiliar method for FindPathTo. More...
 
bool RecursiveFindPathTo (const std::string &targetName, SGPath *resultPtr) const
 Recursive auxiliar method for FindPathTo. More...
 

Additional Inherited Members

- Public Types inherited from VART::GraphicObj
enum  ShowType {
  LINES, LINES_AND_NORMALS, POINTS, POINTS_AND_NORMALS,
  FILLED
}
 
- Public Types inherited from VART::SceneNode
enum  TypeID {
  NONE, GRAPHIC_OBJ, BOX, CONE,
  CURVE, BEZIER, CYLINDER, IMAGE,
  IMAGE_2D, VOLUME, MESH_OBJECT, SPHERE,
  JOINT, BIAXIAL_JOINT, CONDYLAR_JOINT, ELLIPSOID_JOINT,
  SADDLE_JOINT, PLANE_JOINT, POLYAXIAL_JOINT, UNIAXIAL_JOINT,
  HINGE_JOINT, PIVOT_JOINT, TRANSFORM
}
 
- Static Public Attributes inherited from VART::SceneNode
static bool recursivePrinting = true
 
- Protected Attributes inherited from VART::GraphicObj
bool show
 
BoundingBox bBox
 
BoundingBox recBBox
 
unsigned int pickName
 A number that uniquely identifies the object for picking purposes. More...
 
- Protected Attributes inherited from VART::SceneNode
std::list< SceneNode * > childList
 Child list. More...
 
std::string description
 Textual identification. More...
 

Detailed Description

A graphical point.

A dot is a point that can rendered on screen as part of a scene graph.

Definition at line 17 of file dot.h.

Constructor & Destructor Documentation

VART::Dot::Dot ( )

Creates an initialized point.

Definition at line 17 of file dot.cpp.

References VART::GraphicObj::show, and size.

VART::Dot::Dot ( const VART::Dot dot)

Creates a new copy of an dot.

Definition at line 23 of file dot.cpp.

VART::Dot::Dot ( const Point4D location)

Creates a point at a specific location.

Definition at line 42 of file dot.cpp.

Member Function Documentation

void VART::Dot::ComputeBoundingBox ( )
virtual

Computes the bounding box.

Implements VART::GraphicObj.

Definition at line 49 of file dot.cpp.

VART::SceneNode * VART::Dot::Copy ( )
virtual

Returns a copy of an dot. Every derived class must reimplements.

Implements VART::SceneNode.

Definition at line 37 of file dot.cpp.

bool VART::Dot::DrawInstanceOGL ( ) const
protectedvirtual

Draws the point.

Reimplemented from VART::SceneNode.

Definition at line 55 of file dot.cpp.

VART::Dot & VART::Dot::operator= ( const VART::Dot dot)

Copies all data from an dot to another.

Definition at line 28 of file dot.cpp.

References color, VART::SceneNode::operator=(), position, and size.

Member Data Documentation

Color VART::Dot::color

The point's color.

Definition at line 47 of file dot.h.

Referenced by operator=().

Point4D VART::Dot::position

The point's position.

Definition at line 41 of file dot.h.

Referenced by operator=().

float VART::Dot::size

The size (in pixels) of the point on screen.

Definition at line 44 of file dot.h.

Referenced by Dot(), and operator=().


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