GLC_lib  2.5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Private Attributes | List of all members
GLC_Point Class Reference

GLC_Point : OpenGL 3D Point. More...

#include <glc_point.h>

+ Inheritance diagram for GLC_Point:

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.
 
- Public Member Functions inherited from GLC_PointCloud
 GLC_PointCloud ()
 Construct an empty cloud of points.
 
 GLC_PointCloud (const GLC_PointCloud &pointCloud)
 Copy constructor.
 
virtual ~GLC_PointCloud ()
 Destructor.
 
const GLC_BoundingBoxboundingBox ()
 Return the point cloud bounding box.
 
bool isEmpty () const
 Return true if this point cloud is empty.
 
GLC_uint addPoint (const GLfloatVector &data)
 Add a point to this wire and returns its id if id are managed.
 
GLC_uint addPoint (const QList< GLC_Point3d > &pointsList)
 Add the given list of points to this cloud and returns its id if id are managed.
 
GLC_uint addPoint (const QList< GLC_Point3df > &pointsList)
 Add the given list of points to this cloud and returns its id if id are managed.
 
void addColors (const GLfloatVector &colors)
 Add Colors.
 
void addColors (const QList< QColor > &colors)
 Add Colors.
 
GLC_PointCloudoperator= (const GLC_PointCloud &pointcloud)
 Set this point cloud from the given point cloud and return a reference of this point cloud.
 
void clear ()
 Clear the content of this point cloud Data and makes it empty.
 
- Public Member Functions inherited from GLC_Geometry
 GLC_Geometry (const QString &name, const bool type)
 Default constructor.
 
 GLC_Geometry (const GLC_Geometry &sourceGeom)
 Copy constructor.
 
GLC_Geometryoperator= (const GLC_Geometry &sourceGeom)
 Overload "=" operator.
 
virtual ~GLC_Geometry ()
 Destructor.
 
GLC_uint id () const
 Get Object ID.
 
QString name () const
 Get Object Name.
 
bool isValid (void) const
 Return true if the geometry is valid.
 
bool hasMaterial () const
 Return true if the geometry has material.
 
GLC_MaterialfirstMaterial (void) const
 Return first material of geometry.
 
int materialCount () const
 Return the number of materials.
 
GLC_Materialmaterial (const GLC_uint key) const
 Return the specified mesh sub material.
 
QSet< GLC_Material * > materialSet () const
 Get materials Set.
 
QList< GLC_uintmaterialIds () const
 Get materials ID List.
 
bool containsMaterial (const GLC_uint key) const
 Return true if Material key is in the mesh.
 
bool boundingBoxIsValid () const
 Return true if the bounding box is valid.
 
bool isTransparent () const
 Get the geometry transparency.
 
bool hasTransparentMaterials () const
 Return true if the geometry contains transparent materials.
 
bool usedColorPerVertex () const
 Return true if color per vertex is used.
 
bool typeIsWire () const
 Return true if the geometry type is wireframe.
 
virtual unsigned int faceCount (int lod=0) const
 Get the number of faces.
 
virtual unsigned int VertexCount () const
 Get the number of vertex.
 
GLfloat lineWidth () const
 Return the line width.
 
QColor wireColor () const
 Return this geometry wire color.
 
bool wireDataIsEmpty () const
 Return true if wire data is empty.
 
GLfloatVector wirePositionVector () const
 Return the wire position vector.
 
int wirePolylineCount () const
 Return the number of wire polylines.
 
GLuint wirePolylineOffset (int index) const
 Return the polyline offset from the given index.
 
GLsizei wirePolylineSize (int index) const
 Return the polyline size from the given index.
 
virtual double volume ()
 Return the volume of this geometry.
 
bool vboIsUsed () const
 Return true if this geometry will try to use VBO.
 
virtual void replaceMasterMaterial (GLC_Material *)
 Replace the Master material.
 
void addMaterial (GLC_Material *)
 Add material to the geometry.
 
void colorPerVertex (const bool colorPerVertex)
 Set the color per vertex usage.
 
void updateTransparentMaterialNumber ()
 Update the transparent material number.
 
virtual void reverseNormals ()
 Reverse normal.
 
virtual void setCurrentLod (const int)
 Set the lod Index.
 
void setId (const GLC_uint id)
 Set Geometry Id.
 
void setName (const QString name)
 Set geometry name.
 
GLC_uint addVerticeGroup (const GLfloatVector &vector)
 Add a vertice group to the geometry and returns its id.
 
void setLineWidth (GLfloat lineWidth)
 Set Line width.
 
void setWireColor (const QColor &color)
 Set this geometry wire color.
 
virtual void copyVboToClientSide ()
 Copy VBO to the Client Side.
 
virtual void releaseVboClientSide (bool update=false)
 Release client VBO.
 
virtual void setVboUsage (bool usage)
 Set VBO usage.
 
virtual void glLoadTexture (void)
 Load each textures of materials.
 
virtual void render (const GLC_RenderProperties &)
 Virtual interface for OpenGL execution.
 

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.
 

Additional Inherited Members

OpenGL Functions
- Protected Attributes inherited from GLC_Geometry
bool m_GeometryIsValid
 Geometry validity.
 
GLC_BoundingBoxm_pBoundingBox
 Bounding box.
 
MaterialHash m_MaterialHash
 Material Hash table.
 
bool m_UseColorPerVertex
 Color per vertex usage.
 
bool m_IsSelected
 Selection state.
 
GLC_WireData m_WireData
 Wire Data.
 
QColor m_WireColor
 The wire color.
 
GLfloat m_LineWidth
 The line width.
 

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)
privatevirtual

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 GLC_PointCloud::glDraw(), and m_Size.

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::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::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

GLC_Point3d GLC_Point::m_Coordinate
private

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:

©2005-2013 Laurent Ribon