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

The abstract base of all classes describing the geometric shape of 3D objects. More...

#include <Shape3D.hpp>

+ Inheritance diagram for CDPL::Vis::Shape3D:

Public Types

typedef std::shared_ptr< Shape3DSharedPointer
 A reference-counted smart pointer [SHPTR] for dynamically allocated Shape3D instances. More...
 

Public Member Functions

virtual ~Shape3D ()
 Virtual destructor. More...
 
virtual SharedPointer clone () const =0
 Creates a dynamically allocated copy of the graphics primitive. More...
 
virtual void accept (Shape3DVisitor &visitor) const =0
 Vis::Shape3DVisitor implementation accept method [VPTN]. More...
 

Detailed Description

The abstract base of all classes describing the geometric shape of 3D objects.

Since
1.3

Member Typedef Documentation

◆ SharedPointer

typedef std::shared_ptr<Shape3D> CDPL::Vis::Shape3D::SharedPointer

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

Constructor & Destructor Documentation

◆ ~Shape3D()

virtual CDPL::Vis::Shape3D::~Shape3D ( )
inlinevirtual

Virtual destructor.

Member Function Documentation

◆ clone()

virtual SharedPointer CDPL::Vis::Shape3D::clone ( ) const
pure virtual

Creates a dynamically allocated copy of the graphics primitive.

Returns
The copy of the graphics primitive.

Implemented in CDPL::Vis::TriangleMesh3D.

◆ accept()

virtual void CDPL::Vis::Shape3D::accept ( Shape3DVisitor visitor) const
pure virtual

Vis::Shape3DVisitor implementation accept method [VPTN].

Parameters
visitorThe Vis::Shape3DVisitor instance to accept.

Implemented in CDPL::Vis::TriangleMesh3D.


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