voxelTerrain
 All Classes Functions Variables Typedefs Enumerations Pages
Public Types | Public Member Functions | Static Public Member Functions | List of all members
customSurfaceTile< configType > Class Template Reference
Inheritance diagram for customSurfaceTile< configType >:
blub::procedural::voxel::tile::surface< configType > blub::procedural::voxel::tile::base< surface< configType > > blub::enableSharedFromThis< surface< configType > >

Public Types

typedef configType t_config
 
typedef blub::sharedPointer
< customSurfaceTile< t_config > > 
pointer
 
typedef voxel::tile::surface
< t_config > 
t_base
 
- Public Types inherited from blub::procedural::voxel::tile::surface< configType >
typedef configType t_config
 
typedef base< surface< t_config > > t_base
 
typedef
t_config::t_surface::t_tile * 
t_thiz
 
typedef
t_config::t_accessor::t_tile 
t_voxelAccessor
 
typedef sharedPointer
< t_voxelAccessor > 
t_voxelAccessorPtr
 
typedef vector< typename
t_config::t_vertex
t_vertices
 
typedef vector< typename
t_config::t_index > 
t_indices
 
typedef t_config::t_data t_voxel
 
typedef t_config::t_vertex t_vertex
 
typedef array< t_voxel, 2 *2 *2 > t_calcVoxel
 
typedef array< t_voxel, 3 *3 *3+2 *2 > t_calcVoxelLod
 
- Public Types inherited from blub::procedural::voxel::tile::base< surface< configType > >
typedef sharedPointer< surface
< configType > > 
pointer
 
- Public Types inherited from blub::enableSharedFromThis< surface< configType > >
typedef
std::enable_shared_from_this
< surface< configType > > 
t_base
 
typedef blub::sharedPointer
< surface< configType >const > 
t_thisPtrConst
 
typedef blub::sharedPointer
< surface< configType > > 
t_thisPtr
 

Public Member Functions

t_base::t_vertex createVertex (const vector3int32 &voxelPos, const typename t_base::t_voxel &voxel0, const typename t_base::t_voxel &voxel1, const vector3 &position, const vector3 &normal)
 
t_base::t_vertex createVertexLod (const vector3int32 &voxelPos, const typename t_base::t_voxel &voxel0, const typename t_base::t_voxel &voxel1, const vector3 &position, const vector3 &normal)
 
- Public Member Functions inherited from blub::procedural::voxel::tile::surface< configType >
 ~surface ()
 ~surface desctructor
 
void calculateSurface (const t_voxelAccessorPtr voxel, const real &voxelSize=1., const bool &calculateNormalCorrection=true, const int32 &lod=0)
 calculateSurface calculates the iso surface. More...
 
void clear ()
 clear erases all buffer/results.
 
bool getCaluculateTransvoxel () const
 does the transvoxel algo get applied. More...
 
bool getCaluculateLod () const
 same as getCaluculateTransvoxel() More...
 
const t_verticesgetVertices () const
 getPositions returns resulting position-list. More...
 
const t_indicesgetIndices () const
 getIndices returns resulting index-list. More...
 
const t_indicesgetIndicesLod (const uint16 &lod) const
 getPositions returns resulting transvoxel-list. Vertices for these indices are in getPositions() and getNormals(). More...
 
- Public Member Functions inherited from blub::enableSharedFromThis< surface< configType > >
t_thisPtrConst getSharedThisPtr () const
 
t_thisPtr getSharedThisPtr ()
 

Static Public Member Functions

static pointer create ()
 
static pointer createCopy (pointer toCopy)
 
- Static Public Member Functions inherited from blub::procedural::voxel::tile::surface< configType >
static t_base::pointer create ()
 create creates an instance. More...
 
static t_base::pointer createCopy (typename t_base::pointer toCopy)
 createCopy copies an instance. More...
 

Additional Inherited Members

- Protected Member Functions inherited from blub::procedural::voxel::tile::surface< configType >
 surface ()
 surface constructor
 
t_vertex createVertex (const vector3int32 &, const t_voxel &, const t_voxel &, const vector3 &position, const vector3 &normal)
 Creates a vertex.
 
t_vertex createVertexLod (const vector3int32 &, const t_voxel &, const t_voxel &, const vector3 &position, const vector3 &normal)
 Creates a vertex for lod.
 
- Protected Member Functions inherited from blub::procedural::voxel::tile::base< surface< configType > >
 base ()
 base constrcutor.
 
- Protected Attributes inherited from blub::procedural::voxel::tile::surface< configType >
t_voxelAccessorPtr m_voxel
 
int32 m_lod
 
t_vertices m_vertices
 
t_indices m_indices
 
t_indices m_indicesLod [6]
 

Detailed Description

template<typename configType>
class customSurfaceTile< configType >

Examples:
customVertexInformation.cpp.

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