Chemical Data Processing Library C++ API - Version 1.3.0
Public Types | Public Member Functions | List of all members
CDPL::Vis::RightFrustumMesh3D Class Reference

A pre-defined triangle mesh providing the vertices and faces of a right frustum specified by the contructor arguments. More...

#include <RightFrustumMesh3D.hpp>

+ Inheritance diagram for CDPL::Vis::RightFrustumMesh3D:

Public Types

typedef std::shared_ptr< RightFrustumMesh3DSharedPointer
 A reference-counted smart pointer [SHPTR] for dynamically allocated RightFrustumMesh3D instances. More...
 
- Public Types inherited from CDPL::Vis::TriangleMesh3D
typedef std::shared_ptr< TriangleMesh3DSharedPointer
 A reference-counted smart pointer [SHPTR] for dynamically allocated TriangleMesh3D instances. More...
 
- Public Types inherited from CDPL::Vis::Shape3D
typedef std::shared_ptr< Shape3DSharedPointer
 A reference-counted smart pointer [SHPTR] for dynamically allocated Shape3D instances. More...
 

Public Member Functions

 RightFrustumMesh3D (double radius1, double radius2, double height, std::size_t num_sides, bool close_btm=true, bool close_top=true)
 
- Public Member Functions inherited from CDPL::Vis::TriangleMesh3D
Shape3D::SharedPointer clone () const
 Creates a dynamically allocated copy of the graphics primitive. More...
 
void accept (Shape3DVisitor &visitor) const
 Vis::Shape3DVisitor implementation accept method [VPTN]. More...
 
Math::Vector3DArraygetVertices ()
 
const Math::Vector3DArraygetVertices () const
 
void addVertex (double x, double y, double z)
 
std::size_t getNumVertices () const
 
Math::Vector3DArraygetVertexNormals ()
 
const Math::Vector3DArraygetVertexNormals () const
 
void addVertexNormal (double x, double y, double z)
 
std::size_t getNumVertexNormals () const
 
Math::Vector3ULArraygetFaces ()
 
const Math::Vector3ULArraygetFaces () const
 
void addFace (unsigned long v1_idx, unsigned long v2_idx, unsigned long v3_idx)
 
std::size_t getNumFaces () const
 
bool isSolid () const
 
void setSolid (bool solid=true)
 
void clear ()
 
void swap (TriangleMesh3D &mesh)
 
TriangleMesh3Doperator+= (const TriangleMesh3D &mesh)
 
- Public Member Functions inherited from CDPL::Vis::Shape3D
virtual ~Shape3D ()
 Virtual destructor. More...
 

Detailed Description

A pre-defined triangle mesh providing the vertices and faces of a right frustum specified by the contructor arguments.

Since
1.3

Member Typedef Documentation

◆ SharedPointer

A reference-counted smart pointer [SHPTR] for dynamically allocated RightFrustumMesh3D instances.

Constructor & Destructor Documentation

◆ RightFrustumMesh3D()

CDPL::Vis::RightFrustumMesh3D::RightFrustumMesh3D ( double  radius1,
double  radius2,
double  height,
std::size_t  num_sides,
bool  close_btm = true,
bool  close_top = true 
)

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