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

VIEW::Line Class Reference
[Geometric Objects]

Line class. More...

#include <line.h>

Inheritance diagram for VIEW::Line:

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

Public Member Functions

Constructors
 Line () throw ()
 Default Constructor.
 Line (const Line &line) throw ()
 Copy constructor with cloning facility.
Destructors
virtual ~Line () throw ()
 Destructor.
virtual void clear () throw ()
 Explicit default initialization.
Assignment methods
void set (const Line &line) throw ()
 Assign the line line to this line.
const Lineoperator= (const Line &line) throw ()
 Assignment operator.
void swap (Line &line) throw ()
 Swapping of line'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

Line class.

An instance of Line represents an instance of the geometric representation "line". A line has the following properties.


Constructor & Destructor Documentation

VIEW::Line::Line  )  throw ()
 

Default Constructor.

Construct new line. The properties of this line are set to:

  • color - to the color black
  • vertex1 - to the vector (0,0,0)
  • vertex2 - to the vector (0,0,0)
    Returns:
    Line new constructed line
    See also:
    GeometricObject

    Vertex2

VIEW::Line::Line const Line line  )  throw ()
 

Copy constructor with cloning facility.

See also:
GeometricObject

Vertex2


Member Function Documentation

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

Explicit default initialization.

Calls GeometricObject::clear. Calls Vertex2::clear.

See also:
GeometricObject::clear

Vertex2::clear

Reimplemented from VIEW::Vertex2.

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

Internal value dump.

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

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

Vertex2::dump

Reimplemented from VIEW::Vertex2.

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

Internal state and consistency self-validation.

Initiate self-validation of the internal state and data structure consistencies of this line. If the internal state of this line is correct (self-validated) and consistent true is returned, false otherwise. Calls GeometricObject::isValid. Calls Vertex2::isValid.

Returns:
bool true if the internal state of this line is correct (self-validated) and consistent, false otherwise
See also:
GeometricObject::isValid

Vertex2::isValid

Reimplemented from VIEW::Vertex2.

const Line& VIEW::Line::operator= const Line line  )  throw ()
 

Assignment operator.

Calls set.

void VIEW::Line::set const Line line  )  throw ()
 

Assign the line line to this line.

the line line.

void VIEW::Line::swap Line line  )  throw ()
 

Swapping of line's.

Swap the value of this line with the line line.

Parameters:
line the line being swapped with this line
See also:
Line