public

Inheritance Graph

graph BT
	TriangleAccessor
	TriangleAccessor --> ReferenceCounter
	click TriangleAccessor "classRendering_1_1MeshUtils_1_1TriangleAccessor"
	click ReferenceCounter "classUtil_1_1ReferenceCounter"

Description

Allows to get triangles of a mesh.

Public Types

   
   
typedef std::tuple< uint32_t, uint32_t, uint32_t > TriangleIndices_t

Protected Functions

   
   
  TriangleAccessor( Mesh * mesh)
   
void assertRange(uint32_t index) const

Public Static Functions

   
   
Util::Reference < TriangleAccessor > create( Mesh * mesh)

Public Functions

   
   
  ~TriangleAccessor()
   
Geometry::Triangle3 getTriangle(uint32_t index) const
   
void setTriangle(uint32_t index, const Geometry::Triangle3 triangle)
   
TriangleIndices_t getIndices(uint32_t index) const

Documentation

typedef
Rendering::MeshUtils::TriangleAccessor::TriangleIndices_t

public
 
 
typedef std::tuple< uint32_t, uint32_t, uint32_t > TriangleIndices_t

Defined in Rendering/MeshUtils/TriangleAccessor.h:49


function
Rendering::MeshUtils::TriangleAccessor::TriangleAccessor

protected
     
     
TriangleAccessor( Mesh * mesh )

Defined in Rendering/MeshUtils/TriangleAccessor.h:45


function
Rendering::MeshUtils::TriangleAccessor::assertRange

protected const
     
     
void assertRange( uint32_t index ) const

Defined in Rendering/MeshUtils/TriangleAccessor.h:47


function
Rendering::MeshUtils::TriangleAccessor::create

public static
     
     
Util::Reference < TriangleAccessor > create( Mesh * mesh )

(static factory) Create a TriangleAccessor for the given Mesh . If no Accessor can be created, an std::invalid_argument exception is thrown.

Defined in Rendering/MeshUtils/TriangleAccessor.h:54


function
Rendering::MeshUtils::TriangleAccessor::~TriangleAccessor

public inline virtual
   
   
~TriangleAccessor( )

Defined in Rendering/MeshUtils/TriangleAccessor.h:56


function
Rendering::MeshUtils::TriangleAccessor::getTriangle

public const
     
     
Geometry::Triangle3 getTriangle( uint32_t index ) const

Defined in Rendering/MeshUtils/TriangleAccessor.h:58


function
Rendering::MeshUtils::TriangleAccessor::setTriangle

public
     
     
void setTriangle( uint32_t index,
  const Geometry::Triangle3 triangle
)    

Defined in Rendering/MeshUtils/TriangleAccessor.h:59


function
Rendering::MeshUtils::TriangleAccessor::getIndices

public const
     
     
TriangleIndices_t getIndices( uint32_t index ) const

Defined in Rendering/MeshUtils/TriangleAccessor.h:61