arbeit
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members

VolSamples Class Reference

#include <VolSamples.h>

Inheritance diagram for VolSamples:

glift::GenPrimGL< glift::VertAttribV3F, glift::TexCoordAttribV4F, glift::IndexAttribV3UI > glift::DrawableGLI glift::StateGLI glift::Compilable glift::GliftObject glift::GliftObject glift::Compilable gutz::Counted List of all members.

Public Member Functions

 VolSamples (unsigned int size, unsigned int nTcoords=1)
 VolSamples (const VolSamples &v)
virtual ~VolSamples ()
void drawRange (unsigned int rIdx)
 Draw range ranges from Range Array.

void drawRange (unsigned int sIdx, unsigned int fIdx)
 index start and finish ranges

glift::VertAttribV3FgetVertAttrib ()
 Get the attributes array, size, types, etc...

glift::IndexAttribV3UIgetIdxAttrib ()
glift::TexCoordAttribV4FgetTCoordAttrib (int tcNum=0)
GenDrawAttrib< UIntV2A > * getRangeAttrib ()
void draw ()
void compile ()
virtual void compile ()
virtual void setErrStream (std::ostream *os)
 Where do you want gl errors to go? they must go somewhere, so don't set it to zero please.

virtual std::ostream * getErrStream () const
 Where are gl errors going?

void bind ()
void release ()
bool isBound ()
virtual bool hasNonCompilable ()

Protected Member Functions

virtual void drawDef ()
virtual void bindDef ()
 Redefine these for specific attributes.

virtual void releaseDef ()
virtual bool isCompiled () const
 Redefine this for specific draw functions.

virtual bool isCompiled () const
void err (const char *where, const char *when=0) const
 error

std::ostream & err () const
 a simpler way, just use the stream! only for always print, this one automatically adds the objects name

void err (const char *where, const char *when=0) const
 error

std::ostream & err () const
 a simpler way, just use the stream! only for always print, this one automatically adds the objects name

void derr (const char *where, const char *when=0) const
 debug error

void derr (const char *where, const char *when=0) const
 debug error

bool glerr (const char *where, const char *when=0) const
 gl error report only in debug mode, only if there is an error, if so return true

bool glerr (const char *where, const char *when=0) const
 gl error report only in debug mode, only if there is an error, if so return true

std::ostream & estr () const
 this one just gives you the stream

std::ostream & estr () const
 this one just gives you the stream

virtual void _incCount ()
 gutz::Counted interface, increment reference count by one.

virtual void _decCount ()
 gutz::Counted interface, decrement reference count by one.

virtual int _getCount () const
 gutz::Counted interface, get the current reference count.


Protected Attributes

glift::VertAttribV3F _verts
glift::IndexAttribV3UI _idx
GenDrawAttrib< UIntV2A > _range
std::vector< glift::TexCoordAttribV4F_tcoords
GLenum _primType
bool _release
std::ostream * m_err

Friends

class SmartPtr
class SmartPtrRef

Constructor & Destructor Documentation

VolSamples::VolSamples unsigned int  size,
unsigned int  nTcoords = 1
 

Definition at line 26 of file VolSamples.cpp.

References GL_TRIANGLES, and size.

VolSamples::VolSamples const VolSamples v  )  [inline]
 

Definition at line 44 of file VolSamples.h.

References v, and VSPRIM.

virtual VolSamples::~VolSamples  )  [inline, virtual]
 

Definition at line 46 of file VolSamples.h.


Member Function Documentation

virtual void gutz::Counted::_decCount  )  [inline, protected, virtual, inherited]
 

gutz::Counted interface, decrement reference count by one.

Not generaly used by subclasses, mostly for collaboration with gutz::SmartPtr. Sometimes you need to call this though, see the documentation for gutz::SmartPtr

Definition at line 54 of file smartptr.h.

Referenced by TFImage::clear(), NrroImage::fBlendOverRGBA(), and Nrro::updateMinMax().

virtual int gutz::Counted::_getCount  )  const [inline, protected, virtual, inherited]
 

gutz::Counted interface, get the current reference count.

Not generaly used by subclasses, mostly for collaboration with gutz::SmartPtr.

Definition at line 58 of file smartptr.h.

virtual void gutz::Counted::_incCount  )  [inline, protected, virtual, inherited]
 

gutz::Counted interface, increment reference count by one.

Not generaly used by subclasses, mostly for collaboration with gutz::SmartPtr. Sometimes you need to call this though, see the documentation for gutz::SmartPtr

Definition at line 48 of file smartptr.h.

Referenced by TFImage::clear(), NrroImage::fBlendOverRGBA(), and Nrro::updateMinMax().

void StateGLI::bind  )  [inherited]
 

Definition at line 34 of file stateGLI.cpp.

References glift::StateGLI::bindDef(), glift::DispList::isCompiled(), and glift::DispList::issue().

Referenced by glift::SubTex::bindDef(), glift::CoreTex::bindDef(), glift::Shader::bindDef(), glift::ProgShader::bindDef(), glift::ShadedPrim::drawDef(), and VolRenAlgBase::drawTris().

virtual void glift::GenPrimGL< glift::VertAttribV3F , glift::TexCoordAttribV4F , glift::IndexAttribV3UI , GenDrawAttrib<UIntV2A> >::bindDef  )  [protected, virtual, inherited]
 

Bind Attributes.

Implements glift::StateGLI.

void StateGLI::compile  )  [virtual, inherited]
 

Compile new disply lists

Force deletion/construction of new objects in case a display list already exists for this object.

Implements glift::Compilable.

Definition at line 81 of file stateGLI.cpp.

References glift::DispList::compile(), and glift::g_compiling.

Referenced by glift::VertexProgARB::reset(), glift::PixelShaderATI8K::reset(), and glift::FragProgARB::reset().

void DrawableGLI::compile  )  [virtual, inherited]
 

Implements glift::Compilable.

Definition at line 57 of file drawableGLI.cpp.

References glift::DispList::compile(), and glift::g_compiling.

void glift::GliftObject::derr const char *  where,
const char *  when = 0
const [inline, protected, inherited]
 

debug error

Definition at line 122 of file gliftObject.h.

References glift::GliftObject::m_err.

void glift::GliftObject::derr const char *  where,
const char *  when = 0
const [inline, protected, inherited]
 

debug error

Definition at line 122 of file gliftObject.h.

References glift::GliftObject::m_err.

void DrawableGLI::draw  )  [inherited]
 

Definition at line 34 of file drawableGLI.cpp.

References glift::DrawableGLI::drawDef(), glift::DispList::isCompiled(), and glift::DispList::issue().

Referenced by glift::WrappedPrim::drawDef(), glift::ShadedPrim::drawDef(), VolRenAlgBase::drawTris(), and glift::ShadedPrim::ShadedPrim().

virtual void glift::GenPrimGL< glift::VertAttribV3F , glift::TexCoordAttribV4F , glift::IndexAttribV3UI , GenDrawAttrib<UIntV2A> >::drawDef  )  [protected, virtual, inherited]
 

Draw.

bound externally, release should be external.

draw!!!!!

Implements glift::DrawableGLI.

void glift::GenPrimGL< glift::VertAttribV3F , glift::TexCoordAttribV4F , glift::IndexAttribV3UI , GenDrawAttrib<UIntV2A> >::drawRange unsigned int  sIdx,
unsigned int  fIdx
[inherited]
 

index start and finish ranges

void glift::GenPrimGL< glift::VertAttribV3F , glift::TexCoordAttribV4F , glift::IndexAttribV3UI , GenDrawAttrib<UIntV2A> >::drawRange unsigned int  rIdx  )  [inherited]
 

Draw range ranges from Range Array.

std::ostream & glift::GliftObject::err  )  const [inline, protected, inherited]
 

a simpler way, just use the stream! only for always print, this one automatically adds the objects name

Definition at line 111 of file gliftObject.h.

References glift::GliftObject::m_err.

Referenced by glift::CoordTrans::apply(), glift::SubTex::bindDef(), glift::PrimGL::bindIndices(), glift::SubdivPlanarQuadS::bindQuads(), glift::PrimGL::bindTexCoords(), glift::CoreTex::checkTexType(), glift::EmptyTex::copyToTex(), glift::CoreTex::CoreTex(), glift::FuncTex::FuncTex(), glift::Shader::genTexCoords(), glift::CoreTex::getDataf(), glift::CoreTex::getDataub(), glift::VertexProgARB::init(), glift::FragProgARB::init(), glift::PriorityTex::PriorityTex(), glift::VertexProgARB::reload(), glift::FragProgARB::reload(), glift::RenderableGLI::render(), glift::RenderPass::renderDef(), glift::EmptyTex::resetTexState(), glift::PixelShaderATI8K::setLocalConstf(), glift::TexCube::setTexData(), glift::EmptyTex::setTexData(), glift::ShadedPrim::ShadedPrim(), glift::TexConst::TexConst(), glift::TexCube::TexCube(), and glift::EmptyTex::tryToBindPbuff().

void glift::GliftObject::err const char *  where,
const char *  when = 0
const [inline, protected, inherited]
 

error

Definition at line 101 of file gliftObject.h.

References glift::GliftObject::m_err.

Referenced by glift::SubPBuff::enable().

std::ostream & glift::GliftObject::err  )  const [inline, protected, inherited]
 

a simpler way, just use the stream! only for always print, this one automatically adds the objects name

Definition at line 111 of file gliftObject.h.

References glift::GliftObject::m_err.

Referenced by glift::CoordTrans::apply(), glift::SubTex::bindDef(), glift::PrimGL::bindIndices(), glift::SubdivPlanarQuadS::bindQuads(), glift::PrimGL::bindTexCoords(), glift::CoreTex::checkTexType(), glift::EmptyTex::copyToTex(), glift::CoreTex::CoreTex(), glift::FuncTex::FuncTex(), glift::Shader::genTexCoords(), glift::CoreTex::getDataf(), glift::CoreTex::getDataub(), glift::VertexProgARB::init(), glift::FragProgARB::init(), glift::PriorityTex::PriorityTex(), glift::VertexProgARB::reload(), glift::FragProgARB::reload(), glift::RenderableGLI::render(), glift::RenderPass::renderDef(), glift::EmptyTex::resetTexState(), glift::PixelShaderATI8K::setLocalConstf(), glift::TexCube::setTexData(), glift::EmptyTex::setTexData(), glift::ShadedPrim::ShadedPrim(), glift::TexConst::TexConst(), glift::TexCube::TexCube(), and glift::EmptyTex::tryToBindPbuff().

void glift::GliftObject::err const char *  where,
const char *  when = 0
const [inline, protected, inherited]
 

error

Definition at line 101 of file gliftObject.h.

References glift::GliftObject::m_err.

Referenced by glift::SubPBuff::enable().

std::ostream& glift::GliftObject::estr  )  const [inline, protected, inherited]
 

this one just gives you the stream

Definition at line 84 of file gliftObject.h.

References glift::GliftObject::m_err.

Referenced by glift::CoreTex::bindDef(), glift::Shader::bindDef(), glift::MultiTex::bindDef(), glift::EmptyTex::bindDef(), glift::DispList::compile(), glift::CoreTex::CoreTex(), glift::VertexProgARB::init(), glift::FragProgARB::init(), glift::MultiTex::releaseDef(), and glift::EmptyTex::releaseDef().

std::ostream& glift::GliftObject::estr  )  const [inline, protected, inherited]
 

this one just gives you the stream

Definition at line 84 of file gliftObject.h.

References glift::GliftObject::m_err.

Referenced by glift::CoreTex::bindDef(), glift::Shader::bindDef(), glift::MultiTex::bindDef(), glift::EmptyTex::bindDef(), glift::DispList::compile(), glift::CoreTex::CoreTex(), glift::VertexProgARB::init(), glift::FragProgARB::init(), glift::MultiTex::releaseDef(), and glift::EmptyTex::releaseDef().

virtual std::ostream* glift::GliftObject::getErrStream  )  const [inline, virtual, inherited]
 

Where are gl errors going?

Definition at line 49 of file gliftObject.h.

References glift::GliftObject::m_err.

Referenced by glift::getProgShaderFromFile(), and glift::getProgShaderFromText().

glift::IndexAttribV3UI * glift::GenPrimGL< glift::VertAttribV3F , glift::TexCoordAttribV4F , glift::IndexAttribV3UI , GenDrawAttrib<UIntV2A> >::getIdxAttrib  )  [inline, inherited]
 

Definition at line 78 of file genPrim.h.

References glift::GenPrimGL< VERTA, TEXCA, IDXA, RANGEA >::_idx.

GenDrawAttrib<UIntV2A> * glift::GenPrimGL< glift::VertAttribV3F , glift::TexCoordAttribV4F , glift::IndexAttribV3UI , GenDrawAttrib<UIntV2A> >::getRangeAttrib  )  [inline, inherited]
 

Definition at line 80 of file genPrim.h.

References glift::GenPrimGL< VERTA, TEXCA, IDXA, RANGEA >::_range.

glift::TexCoordAttribV4F * glift::GenPrimGL< glift::VertAttribV3F , glift::TexCoordAttribV4F , glift::IndexAttribV3UI , GenDrawAttrib<UIntV2A> >::getTCoordAttrib int  tcNum = 0  )  [inline, inherited]
 

Definition at line 79 of file genPrim.h.

References glift::GenPrimGL< VERTA, TEXCA, IDXA, RANGEA >::_tcoords.

Referenced by AnalyticVolRen::postSlice().

glift::VertAttribV3F * glift::GenPrimGL< glift::VertAttribV3F , glift::TexCoordAttribV4F , glift::IndexAttribV3UI , GenDrawAttrib<UIntV2A> >::getVertAttrib  )  [inline, inherited]
 

Get the attributes array, size, types, etc...

Definition at line 77 of file genPrim.h.

References glift::GenPrimGL< VERTA, TEXCA, IDXA, RANGEA >::_verts.

Referenced by AnalyticVolRen::postSlice().

bool GliftObject::glerr const char *  where,
const char *  when = 0
const [protected, inherited]
 

gl error report only in debug mode, only if there is an error, if so return true

Definition at line 31 of file gliftObject.cpp.

References glGetError(), and GLuint.

Referenced by RenderState2D::bindDef(), glift::NormalAttrib< VAT >::disableDef(), glift::IndexAttrib< VAT >::disableDef(), glift::TexCoordAttrib< VAT >::disableDef(), glift::VertAttrib< VAT >::disableDef(), glift::GenDrawAttrib< VAT >::disableDef(), glift::DrawAlgImm::draw(), glift::DrawAlgArr::draw(), glift::ShadedPrim::drawDef(), glift::NormalAttrib< VAT >::enableDef(), glift::IndexAttrib< VAT >::enableDef(), glift::TexCoordAttrib< VAT >::enableDef(), glift::VertAttrib< VAT >::enableDef(), glift::GenDrawAttrib< VAT >::enableDef(), and RenderState2D::releaseDef().

bool GliftObject::glerr const char *  where,
const char *  when = 0
const [protected, inherited]
 

gl error report only in debug mode, only if there is an error, if so return true

Definition at line 31 of file gliftObject.cpp.

References glGetError(), and GLuint.

Referenced by RenderState2D::bindDef(), glift::NormalAttrib< VAT >::disableDef(), glift::IndexAttrib< VAT >::disableDef(), glift::TexCoordAttrib< VAT >::disableDef(), glift::VertAttrib< VAT >::disableDef(), glift::GenDrawAttrib< VAT >::disableDef(), glift::DrawAlgImm::draw(), glift::DrawAlgArr::draw(), glift::ShadedPrim::drawDef(), glift::NormalAttrib< VAT >::enableDef(), glift::IndexAttrib< VAT >::enableDef(), glift::TexCoordAttrib< VAT >::enableDef(), glift::VertAttrib< VAT >::enableDef(), glift::GenDrawAttrib< VAT >::enableDef(), and RenderState2D::releaseDef().

virtual bool glift::StateGLI::hasNonCompilable  )  [inline, virtual, inherited]
 

Definition at line 72 of file stateGLI.h.

bool glift::StateGLI::isBound  )  [inline, inherited]
 

Definition at line 70 of file stateGLI.h.

Referenced by glift::GenPrimGL< VERTA, TEXCA, IDXA, RANGEA >::drawDef(), VolShader::setBlend(), VolRenAlgBase::setGeom(), VolShader::setPixelShader(), VolRenAlgBase::setShader(), VolShader::setVertexShader(), and VolRenAlgBase::setVolytope().

virtual bool glift::StateGLI::isCompiled  )  const [inline, protected, virtual, inherited]
 

Implements glift::Compilable.

Definition at line 81 of file stateGLI.h.

Referenced by glift::VertexProgARB::reset(), glift::PixelShaderATI8K::reset(), and glift::FragProgARB::reset().

virtual bool glift::DrawableGLI::isCompiled  )  const [inline, protected, virtual, inherited]
 

Redefine this for specific draw functions.

Implements glift::Compilable.

Definition at line 34 of file drawableGLI.h.

Referenced by glift::PrimGL::bindIndices(), and glift::PrimGL::bindTexCoords().

void StateGLI::release  )  [inherited]
 

Definition at line 57 of file stateGLI.cpp.

References glift::DispList::isCompiled(), glift::DispList::issue(), and glift::StateGLI::releaseDef().

Referenced by glift::ShadedPrim::drawDef(), VolRenAlgBase::drawTris(), glift::CoreTex::getDataub(), glift::SubTex::releaseDef(), glift::CoreTex::releaseDef(), glift::Shader::releaseDef(), and glift::ProgShader::releaseDef().

virtual void glift::GenPrimGL< glift::VertAttribV3F , glift::TexCoordAttribV4F , glift::IndexAttribV3UI , GenDrawAttrib<UIntV2A> >::releaseDef  )  [protected, virtual, inherited]
 

Release Attributes.

Implements glift::StateGLI.

virtual void glift::GliftObject::setErrStream std::ostream *  os  )  [inline, virtual, inherited]
 

Where do you want gl errors to go? they must go somewhere, so don't set it to zero please.

Definition at line 44 of file gliftObject.h.

References glift::GliftObject::m_err.

Referenced by glift::getProgShaderFromFile(), and glift::getProgShaderFromText().


Friends And Related Function Documentation

friend class SmartPtr [friend, inherited]
 

Definition at line 40 of file smartptr.h.

Referenced by Nrro::NrroIter< T >::NrroIter().

friend class SmartPtrRef [friend, inherited]
 

Definition at line 41 of file smartptr.h.


Member Data Documentation

glift::IndexAttribV3UI glift::GenPrimGL< glift::VertAttribV3F , glift::TexCoordAttribV4F , glift::IndexAttribV3UI , GenDrawAttrib<UIntV2A> >::_idx [protected, inherited]
 

Definition at line 88 of file genPrim.h.

GLenum glift::GenPrimGL< glift::VertAttribV3F , glift::TexCoordAttribV4F , glift::IndexAttribV3UI , GenDrawAttrib<UIntV2A> >::_primType [protected, inherited]
 

Definition at line 91 of file genPrim.h.

GenDrawAttrib<UIntV2A> glift::GenPrimGL< glift::VertAttribV3F , glift::TexCoordAttribV4F , glift::IndexAttribV3UI , GenDrawAttrib<UIntV2A> >::_range [protected, inherited]
 

Definition at line 89 of file genPrim.h.

bool glift::GenPrimGL< glift::VertAttribV3F , glift::TexCoordAttribV4F , glift::IndexAttribV3UI , GenDrawAttrib<UIntV2A> >::_release [protected, inherited]
 

Definition at line 92 of file genPrim.h.

std::vector<glift::TexCoordAttribV4F > glift::GenPrimGL< glift::VertAttribV3F , glift::TexCoordAttribV4F , glift::IndexAttribV3UI , GenDrawAttrib<UIntV2A> >::_tcoords [protected, inherited]
 

Definition at line 90 of file genPrim.h.

glift::VertAttribV3F glift::GenPrimGL< glift::VertAttribV3F , glift::TexCoordAttribV4F , glift::IndexAttribV3UI , GenDrawAttrib<UIntV2A> >::_verts [protected, inherited]
 

Definition at line 87 of file genPrim.h.

std::ostream* glift::GliftObject::m_err [mutable, protected, inherited]
 

Definition at line 87 of file gliftObject.h.

Referenced by glift::GliftObject::derr(), glift::GliftObject::err(), glift::GliftObject::estr(), glift::GliftObject::getErrStream(), glift::GliftObject::GliftObject(), and glift::GliftObject::setErrStream().


The documentation for this class was generated from the following files:
Send questions, comments, and bug reports to:
jmk