GLC_Point Class Reference

GLC_Point : OpenGL 3D Point. More...

#include <glc_point.h>

Inheritance diagram for GLC_Point:
GLC_PointCloud GLC_Geometry

List of all members.

Public Member Functions

Constructor / Destructor

 GLC_Point (const GLC_Point3d &)
 Construct an GLC_Point.
 GLC_Point (double, double, double)
 Construct an GLC_Point.
 GLC_Point (const GLC_Point &point)
 Copy constructor.
Get Functions

GLC_Point3d coordinate (void) const
 Return a GLC_Point3d of coordinate.
virtual GLC_Geometryclone () const
 Return a copy of the geometry.
GLfloat size () const
 Return the size of this point.
Set Functions

void setCoordinate (const GLC_Point3d &)
 Set Point coordinate by 4D point.
void setCoordinate (double x, double y, double z)
 Set Point coordinate by 3 double.
void setSize (GLfloat size)
 Set the size of this point.

Private Member Functions

OpenGL Functions

virtual void glDraw (const GLC_RenderProperties &)
 Virtual interface for OpenGL Geometry set up.

Private Attributes

GLC_Point3d m_Coordinate
 Point for point coordinate.
GLfloat m_Size
 Size of the point.

Detailed Description

GLC_Point : OpenGL 3D Point.

An GLC_Point is just a simple 3D Point

Definition at line 39 of file glc_point.h.


Constructor & Destructor Documentation

GLC_Point::GLC_Point ( const GLC_Point3d setCoord  ) 

Construct an GLC_Point.

Definition at line 34 of file glc_point.cpp.

References m_Coordinate, and setCoordinate().

Referenced by clone().

GLC_Point::GLC_Point ( double  x,
double  y,
double  z 
)

Construct an GLC_Point.

Definition at line 42 of file glc_point.cpp.

References m_Coordinate, and setCoordinate().

GLC_Point::GLC_Point ( const GLC_Point point  ) 

Copy constructor.

Definition at line 50 of file glc_point.cpp.


Member Function Documentation

GLC_Geometry * GLC_Point::clone (  )  const [virtual]

Return a copy of the geometry.

Reimplemented from GLC_PointCloud.

Definition at line 69 of file glc_point.cpp.

References GLC_Point().

GLC_Point3d GLC_Point::coordinate ( void   )  const

Return a GLC_Point3d of coordinate.

Definition at line 63 of file glc_point.cpp.

References m_Coordinate.

void GLC_Point::glDraw ( const GLC_RenderProperties renderProperties  )  [private, virtual]

Virtual interface for OpenGL Geometry set up.

This Virtual function is implemented here.

Reimplemented from GLC_PointCloud.

Definition at line 98 of file glc_point.cpp.

References m_Size.

void GLC_Point::setCoordinate ( double  x,
double  y,
double  z 
)

Set Point coordinate by 3 double.

Definition at line 89 of file glc_point.cpp.

References setCoordinate().

void GLC_Point::setCoordinate ( const GLC_Point3d point  ) 

Set Point coordinate by 4D point.

Definition at line 79 of file glc_point.cpp.

References GLC_PointCloud::addPoint(), GLC_PointCloud::clear(), and m_Coordinate.

Referenced by GLC_Point(), and setCoordinate().

void GLC_Point::setSize ( GLfloat  size  )  [inline]

Set the size of this point.

Definition at line 87 of file glc_point.h.

GLfloat GLC_Point::size (  )  const [inline]

Return the size of this point.

Definition at line 70 of file glc_point.h.


Member Data Documentation

Point for point coordinate.

Definition at line 110 of file glc_point.h.

Referenced by coordinate(), GLC_Point(), and setCoordinate().

GLfloat GLC_Point::m_Size [private]

Size of the point.

Definition at line 113 of file glc_point.h.

Referenced by glDraw().


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

SourceForge.net Logo

©2005-2011 Laurent Ribon