pop_geometric_object Class Reference

#include <pop_geometric_object.h>

Inheritance diagram for pop_geometric_object:

pop_object pop_point_2d pop_point_3d List of all members.

Detailed Description

This is an object that has a coordinate system.

The object is based on a set of parameters that can be changed. This object can be transformed into another coordinate system which is a pop_vertex.

Definition at line 26 of file pop_geometric_object.h.


Public Member Functions

 pop_geometric_object (pop_vertex *coordinate_system, vcl_vector< pop_parameter * > &params)
 constructor.
 pop_geometric_object (pop_vertex *coordinate_system)
 used when this is not a parametric object but just a geometric one.
virtual ~pop_geometric_object ()
 destructor.
pop_geometric_objecttransform (pop_vertex *destination)
 we should be able to transform to another coordinate system.
pop_geometric_objectcast_to_pop_geometric_object ()
 we need to have safe down casting.
virtual pop_point_2dcast_to_pop_point_2d ()
virtual pop_point_3dcast_to_pop_point_3d ()
virtual double cost (pop_geometric_object *other)
 computes a cost between this and another object.
virtual void update ()=0
 update the object based on the parameters.
vcl_vector< pop_parameter * > get_parameters ()
 get the parameters.
void set (vcl_vector< pop_parameter * > &params)
 set the parameters.

Public Attributes

pop_vertexcoordinate_system_
 this is the coordinate system.

Protected Attributes

vcl_vector< pop_parameter * > params_
 the basic parameters.

Constructor & Destructor Documentation

pop_geometric_object::pop_geometric_object ( pop_vertex coordinate_system,
vcl_vector< pop_parameter * > &  params 
)

constructor.

Definition at line 15 of file pop_geometric_object.cxx.

pop_geometric_object::pop_geometric_object ( pop_vertex coordinate_system  ) 

used when this is not a parametric object but just a geometric one.

Definition at line 9 of file pop_geometric_object.cxx.

pop_geometric_object::~pop_geometric_object (  )  [virtual]

destructor.

Definition at line 22 of file pop_geometric_object.cxx.


Member Function Documentation

pop_geometric_object * pop_geometric_object::transform ( pop_vertex destination  ) 

we should be able to transform to another coordinate system.

Definition at line 27 of file pop_geometric_object.cxx.

pop_geometric_object* pop_geometric_object::cast_to_pop_geometric_object (  )  [inline]

we need to have safe down casting.

Definition at line 46 of file pop_geometric_object.h.

virtual pop_point_2d* pop_geometric_object::cast_to_pop_point_2d (  )  [inline, virtual]

Reimplemented in pop_point_2d.

Definition at line 47 of file pop_geometric_object.h.

virtual pop_point_3d* pop_geometric_object::cast_to_pop_point_3d (  )  [inline, virtual]

Reimplemented in pop_point_3d.

Definition at line 48 of file pop_geometric_object.h.

double pop_geometric_object::cost ( pop_geometric_object other  )  [virtual]

computes a cost between this and another object.

Reimplemented in pop_point_2d, and pop_point_3d.

Definition at line 60 of file pop_geometric_object.cxx.

virtual void pop_geometric_object::update (  )  [pure virtual]

update the object based on the parameters.

Reimplemented from pop_object.

Implemented in pop_point_2d, and pop_point_3d.

vcl_vector<pop_parameter*> pop_object::get_parameters (  )  [inline, inherited]

get the parameters.

Definition at line 36 of file pop_object.h.

void pop_object::set ( vcl_vector< pop_parameter * > &  params  )  [inline, inherited]

set the parameters.

Definition at line 39 of file pop_object.h.


Member Data Documentation

pop_vertex* pop_geometric_object::coordinate_system_

this is the coordinate system.

Definition at line 39 of file pop_geometric_object.h.

vcl_vector<pop_parameter*> pop_object::params_ [protected, inherited]

the basic parameters.

Definition at line 47 of file pop_object.h.


The documentation for this class was generated from the following files:
Generated on Thu Aug 28 05:14:56 2008 for contrib/gel/pop by  doxygen 1.5.1