GLC_Point Class Reference

GLC_Point : OpenGL 3D Point. More...

#include <glc_point.h>

Inheritance diagram for GLC_Point:
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.
Get Functions

GLC_Point3d coordinate (void) const
 Return a GLC_Point3d of coordinate.
virtual const GLC_BoundingBoxboundingBox (void)
 Return the point bounding box.
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.

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.


Member Function Documentation

const GLC_BoundingBox & GLC_Point::boundingBox ( void   )  [virtual]

Return the point bounding box.

Implements GLC_Geometry.

Definition at line 60 of file glc_point.cpp.

References GLC_BoundingBox::combine(), m_Coordinate, GLC_Geometry::m_pBoundingBox, GLC_Vector3d::x(), GLC_Vector3d::y(), and GLC_Vector3d::z().

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

Return a copy of the geometry.

Implements GLC_Geometry.

Definition at line 80 of file glc_point.cpp.

References GLC_Point().

GLC_Point3d GLC_Point::coordinate ( void   )  const

Return a GLC_Point3d of coordinate.

Definition at line 54 of file glc_point.cpp.

References m_Coordinate.

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

Virtual interface for OpenGL Geometry set up.

This Virtual function is implemented here.

Implements GLC_Geometry.

Definition at line 104 of file glc_point.cpp.

References GLC_Vector3d::data(), m_Coordinate, and m_Size.

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

Set Point coordinate by 3 double.

Definition at line 95 of file glc_point.cpp.

References m_Coordinate, and GLC_Vector3d::setVect().

void GLC_Point::setCoordinate ( const GLC_Point3d point  ) 

Set Point coordinate by 4D point.

Definition at line 90 of file glc_point.cpp.

References m_Coordinate.

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 boundingBox(), coordinate(), glDraw(), 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