Main Page | Modules | Namespace List | Class Hierarchy | Class List | Namespace Members | Class Members

VIEW::Point Class Reference
[Geometric Objects]

Point class. More...

#include <point.h>

Inheritance diagram for VIEW::Point:

VIEW::GeometricObject VIEW::Vertex List of all members.

Public Member Functions

Constructors
 Point () throw ()
 Default Constructor.
 Point (const Point &point) throw ()
 Copy constructor.
Destructors
virtual ~Point () throw ()
 Destructor.
virtual void clear () throw ()
 Explicit default initialization.
Assignment methods
void set (const Point &point) throw ()
 Assignment.
const Pointoperator= (const Point &point) throw ()
 Assignment operator.
void swap (Point &point) throw ()
 Swapping of point's.
debuggers and diagnostics
virtual bool isValid () const throw ()
 Internal state and consistency self-validation.
virtual void dump (std::ostream &s=std::cout, Size depth=0) const throw ()
 Internal value dump.
virtual void getVertices (vector< Vector3 > &vertices) const

Detailed Description

Point class.

An instance of Point represents an instance of the geometric representation "point". A point has the following properties.


Constructor & Destructor Documentation

VIEW::Point::Point  )  throw ()
 

Default Constructor.

The properties of this point are set to:

  • color - to the color black
  • vertex - to the vector (0,0,0)

virtual VIEW::Point::~Point  )  throw () [virtual]
 

Destructor.


Member Function Documentation

virtual void VIEW::Point::clear  )  throw () [virtual]
 

Explicit default initialization.

Calls GeometricObject::clear Calls Vertex::clear

Reimplemented from VIEW::Vertex.

virtual void VIEW::Point::dump std::ostream &  s = std::cout,
Size  depth = 0
const throw () [virtual]
 

Internal value dump.

Dump the current value of this point to the output ostream s with dumping depth depth. Calls GeometricObject::dump. Calls Vertex::dump.

Parameters:
s output stream where to output the value of this point
depth the dumping depth
See also:
GeometricObject::dump

Vertex::dump

Reimplemented from VIEW::Vertex.

virtual bool VIEW::Point::isValid  )  const throw () [virtual]
 

Internal state and consistency self-validation.

Reimplemented from VIEW::Vertex.

const Point& VIEW::Point::operator= const Point point  )  throw ()
 

Assignment operator.

Calls set.

void VIEW::Point::set const Point point  )  throw ()
 

Assignment.

void VIEW::Point::swap Point point  )  throw ()
 

Swapping of point's.

Swap the value of this point with the point point.

Parameters:
point the point being swapped with this point