Visualization Library 2.0.0

A lightweight C++ OpenGL middleware for 2D/3D graphics

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
Public Member Functions | Protected Attributes | List of all members
vl::VolumeInfo Class Reference

Defines the volume parameters to be used with a MarchingCube and Volume object. More...

#include <MarchingCubes.hpp>

+ Inheritance diagram for vl::VolumeInfo:

Public Member Functions

 VolumeInfo ()
 
 VolumeInfo (Volume *vol, float threshold)
 
 VolumeInfo (Volume *vol, float threshold, const fvec4 &color)
 
void setColor (const fvec4 &col)
 
const fvec4color () const
 
void setThreshold (float t)
 
float threshold () const
 
void setVolume (Volume *vol)
 
const Volumevolume () const
 
Volumevolume ()
 
void setVert0 (int index)
 
int vert0 () const
 
void setVertC (int count)
 
int vertC () const
 
- Public Member Functions inherited from vl::Object
 Object ()
 Constructor. More...
 
 Object (const Object &other)
 Copy constructor: copies the name, ref count mutex and user data. More...
 
Objectoperator= (const Object &other)
 Copy operator: copies the object's name, ref count mutex and user data. More...
 
const std::string & objectName () const
 The name of the object, by default set to the object's class name. More...
 
void setObjectName (const char *name)
 The name of the object, by default set to the object's class name in debug builds. More...
 
void setObjectName (const std::string &name)
 The name of the object, by default set to the object's class name in debug builds. More...
 
void setRefCountMutex (IMutex *mutex)
 The mutex used to protect the reference counting of an Object across multiple threads. More...
 
IMutexrefCountMutex ()
 The mutex used to protect the reference counting of an Object across multiple threads. More...
 
const IMutexrefCountMutex () const
 The mutex used to protect the reference counting of an Object across multiple threads. More...
 
int referenceCount () const
 Returns the number of references of an object. More...
 
void incReference () const
 Increments the reference count of an object. More...
 
void decReference ()
 Decrements the reference count of an object and deletes it if both automaticDelete() is true the count reaches 0. More...
 
void setAutomaticDelete (bool autodel_on)
 If set to true the Object is deleted when its reference count reaches 0. More...
 
bool automaticDelete () const
 If set to true the Object is deleted when its reference count reaches 0. More...
 
template<class T >
T * as ()
 Casts an Object to the specified class. More...
 
template<class T >
const T * as () const
 Casts an Object to the specified class. More...
 

Protected Attributes

fvec4 mColor
 
float mThreshold
 
ref< VolumemVolume
 
int mVert0
 
int mVertC
 
- Protected Attributes inherited from vl::Object
std::string mObjectName
 
IMutexmRefCountMutex
 
int mReferenceCount
 
bool mAutomaticDelete
 

Additional Inherited Members

- Protected Member Functions inherited from vl::Object
virtual ~Object ()
 

Detailed Description

Defines the volume parameters to be used with a MarchingCube and Volume object.

Definition at line 162 of file MarchingCubes.hpp.

Constructor & Destructor Documentation

◆ VolumeInfo() [1/3]

vl::VolumeInfo::VolumeInfo ( )
inline

Definition at line 167 of file MarchingCubes.hpp.

References NULL.

◆ VolumeInfo() [2/3]

vl::VolumeInfo::VolumeInfo ( Volume vol,
float  threshold 
)
inline

Definition at line 176 of file MarchingCubes.hpp.

◆ VolumeInfo() [3/3]

vl::VolumeInfo::VolumeInfo ( Volume vol,
float  threshold,
const fvec4 color 
)
inline

Definition at line 185 of file MarchingCubes.hpp.

Member Function Documentation

◆ color()

const fvec4& vl::VolumeInfo::color ( ) const
inline

Definition at line 196 of file MarchingCubes.hpp.

◆ setColor()

void vl::VolumeInfo::setColor ( const fvec4 col)
inline

Definition at line 195 of file MarchingCubes.hpp.

◆ setThreshold()

void vl::VolumeInfo::setThreshold ( float  t)
inline

Definition at line 198 of file MarchingCubes.hpp.

◆ setVert0()

void vl::VolumeInfo::setVert0 ( int  index)
inline

Definition at line 205 of file MarchingCubes.hpp.

◆ setVertC()

void vl::VolumeInfo::setVertC ( int  count)
inline

Definition at line 208 of file MarchingCubes.hpp.

◆ setVolume()

void vl::VolumeInfo::setVolume ( Volume vol)
inline

Definition at line 201 of file MarchingCubes.hpp.

◆ threshold()

float vl::VolumeInfo::threshold ( ) const
inline

Definition at line 199 of file MarchingCubes.hpp.

◆ vert0()

int vl::VolumeInfo::vert0 ( ) const
inline

Definition at line 206 of file MarchingCubes.hpp.

◆ vertC()

int vl::VolumeInfo::vertC ( ) const
inline

Definition at line 209 of file MarchingCubes.hpp.

◆ volume() [1/2]

const Volume* vl::VolumeInfo::volume ( ) const
inline

Definition at line 202 of file MarchingCubes.hpp.

◆ volume() [2/2]

Volume* vl::VolumeInfo::volume ( )
inline

Definition at line 203 of file MarchingCubes.hpp.

Member Data Documentation

◆ mColor

fvec4 vl::VolumeInfo::mColor
protected

Definition at line 212 of file MarchingCubes.hpp.

◆ mThreshold

float vl::VolumeInfo::mThreshold
protected

Definition at line 213 of file MarchingCubes.hpp.

◆ mVert0

int vl::VolumeInfo::mVert0
protected

Definition at line 215 of file MarchingCubes.hpp.

◆ mVertC

int vl::VolumeInfo::mVertC
protected

Definition at line 215 of file MarchingCubes.hpp.

◆ mVolume

ref<Volume> vl::VolumeInfo::mVolume
protected

Definition at line 214 of file MarchingCubes.hpp.


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