RobWorkProject  23.9.11-
Public Types | Public Member Functions | List of all members
PrimArrayAccessor< PRIM > Struct Template Referenceabstract

Interface for accessing primitives. More...

#include <BVTree.hpp>

Public Types

typedef PRIM PRIMType
 Type of primitive.
 

Public Member Functions

virtual ~PrimArrayAccessor ()
 Destructor.
 
virtual void getPrimitive (size_t pidx, PRIM &prim) const =0
 Get primitive. More...
 
virtual size_t getSize () const =0
 Get the number of primitives. More...
 

Detailed Description

template<class PRIM>
struct rw::proximity::PrimArrayAccessor< PRIM >

Interface for accessing primitives.

Member Function Documentation

◆ getPrimitive()

virtual void getPrimitive ( size_t  pidx,
PRIM &  prim 
) const
pure virtual

Get primitive.

Parameters
pidx[in] id of primitive.
prim[out] the primitive.

Implemented in BVTreeFactory::TriMeshAccessor< T >, and BVTreeFactory::ShellAccessor< T >.

◆ getSize()

virtual size_t getSize ( ) const
pure virtual

Get the number of primitives.

Returns
the number of primitices.

Implemented in BVTreeFactory::ShellAccessor< T >, and BVTreeFactory::TriMeshAccessor< T >.


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