Code_TYMPAN  4.4.0
Industrial site acoustic simulation
Public Types | Public Member Functions | Protected Attributes | List of all members
OGLPolyLineMesh Class Reference

#include <OGLPolyLineMesh.h>

Inheritance diagram for OGLPolyLineMesh:
Inheritance graph
[legend]
Collaboration diagram for OGLPolyLineMesh:
Collaboration graph
[legend]

Public Types

enum class  EndType { Open , Closed }
 

Public Member Functions

 OGLPolyLineMesh (EndType endType)
 
 OGLPolyLineMesh (const std::vector< QVector3D > &vertices, EndType endType)
 
EndType endType ()
 
void setEndType (EndType endType)
 
void setVertices (const std::vector< QVector3D > &vertices)
 
- Public Member Functions inherited from OGLMesh
const std::vector< QVector3D > & vertices () const
 
const std::vector< QVector2D > & textureCoordinates () const
 
const std::vector< float > & verticesColors () const
 
const std::vector< QVector3D > & normals () const
 
const std::vector< unsigned int > & indices () const
 
void setMaterial (const OGLSimpleMaterial &material)
 
OGLSimpleMaterialmaterial ()
 
const OGLSimpleMaterialmaterial () const
 
const OGLPrivimitiveType primitiveType () const
 
const OBox boundingBox () const
 

Protected Attributes

EndType _endType
 
- Protected Attributes inherited from OGLMesh
std::vector< QVector3D > _vertices
 
std::vector< float > _verticesColors
 
std::vector< QVector3D > _normals
 
std::vector< QVector2D > _textureCoordinates
 
std::vector< unsigned int > _indices
 
OGLSimpleMaterial _material
 
OGLPrivimitiveType _primitiveType
 
OBox _boundingBox
 

Additional Inherited Members

- Protected Member Functions inherited from OGLMesh
void recomputeBoundingBox ()
 

Detailed Description

Specialization of OGLMesh exposing methods to set the geometry data.

Definition at line 25 of file OGLPolyLineMesh.h.

Member Enumeration Documentation

◆ EndType

Enumerator
Open 
Closed 

Definition at line 28 of file OGLPolyLineMesh.h.

Constructor & Destructor Documentation

◆ OGLPolyLineMesh() [1/2]

OGLPolyLineMesh::OGLPolyLineMesh ( OGLPolyLineMesh::EndType  endType)

Definition at line 34 of file OGLPolyLineMesh.cpp.

Here is the call graph for this function:

◆ OGLPolyLineMesh() [2/2]

OGLPolyLineMesh::OGLPolyLineMesh ( const std::vector< QVector3D > &  vertices,
OGLPolyLineMesh::EndType  endType 
)

Definition at line 39 of file OGLPolyLineMesh.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ endType()

OGLPolyLineMesh::EndType OGLPolyLineMesh::endType ( )

Definition at line 45 of file OGLPolyLineMesh.cpp.

Here is the caller graph for this function:

◆ setEndType()

void OGLPolyLineMesh::setEndType ( EndType  endType)

Definition at line 50 of file OGLPolyLineMesh.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setVertices()

void OGLPolyLineMesh::setVertices ( const std::vector< QVector3D > &  vertices)

Definition at line 56 of file OGLPolyLineMesh.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ _endType

EndType OGLPolyLineMesh::_endType
protected

Definition at line 41 of file OGLPolyLineMesh.h.


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