#include <CTransferFunctionElem.h>
Public Member Functions | |
| CTransferFunctionElem (void) | |
| virtual | ~CTransferFunctionElem (void) |
| bool | isInDens (unsigned char uc) const |
| bool | isInGrad (float f) const |
| unsigned int | getID (void) const |
| void | setID (unsigned int uiID) |
| vec_t | getDensMin (void) const |
| vec_t | getDensMax (void) const |
| vec_t | getGradMin (void) const |
| vec_t | getGradMax (void) const |
| void | setDensMin (const vec_t &f) |
| void | setDensMax (const vec_t &f) |
| void | setGradMin (const vec_t &f) |
| void | setGradMax (const vec_t &f) |
| const Vector & | getEmissivity (void) const |
| vec_t | getAbsorptivity (void) const |
| const Vector & | getMaterialDiffuse (void) const |
| const Vector & | getMaterialSpecular (void) const |
| void | setEmissivity (const Vector &V) |
| void | setAbsorptivity (const vec_t fAbs) |
| vec_t | getGlossiness (void) const |
| void | setGlossiness (const vec_t f) |
| void | setMaterialDiffuse (const Vector &V) |
| void | setMaterialSpecular (const Vector &V) |
| std::string | getDescription (void) const |
| void | setDescription (const std::string &s) |
| int | getType (void) const |
| bool | isEnabled (void) const |
| void | setEnabled (bool bEnabled=true) |
| bool | operator< (const CTransferFunctionElem &TF) const |
| sigc::signal< void, unsigned int > | signal_changed () |
Static Public Member Functions | |
| static bool | TFECompareLess (const CTransferFunctionElem &TF1, const CTransferFunctionElem &TF2) |
Protected Attributes | |
| bool | m_bEnabled |
| Vector | m_RGBEmissivity |
| vec_t | m_fAbsorptivity |
| Vector | m_RGBMaterialDiffuse |
| Vector | m_RGBMaterialSpecular |
| vec_t | m_fGlossiness |
| vec_t | m_fDensMin |
| vec_t | m_fDensMax |
| vec_t | m_fGradMin |
| vec_t | m_fGradMax |
| std::string | m_sDescription |
| unsigned int | m_uiID |
| int | m_iType |
| sigc::signal< void, unsigned int > | m_signalChanged |
Friends | |
| class | CTransferFunction |
Definition at line 15 of file CTransferFunctionElem.h.
|
|
Initializes this element. colors are set to black, borders are set to minima respectively maxima.
Definition at line 3 of file CTransferFunctionElem.cpp. References m_bEnabled, m_fAbsorptivity, m_fDensMax, m_fDensMin, m_fGlossiness, m_fGradMax, m_fGradMin, m_iType, m_RGBEmissivity, m_RGBMaterialDiffuse, m_RGBMaterialSpecular, and m_sDescription. |
|
|
nothing to do here yet
Definition at line 24 of file CTransferFunctionElem.cpp. |
|
|
Definition at line 202 of file CTransferFunctionElem.h. References m_fAbsorptivity. Referenced by CShearWarp2VRenderer::calculate(), CBaseVRenderer::getAbsorption(), CPreIntegrator::integrate(), CInt1VRenderer::integrateAlong(), CWindowTransferFunctionEditor::on_ButtonOpen_clicked(), and CFileWriterTFVVis::save(). |
|
|
Definition at line 98 of file CTransferFunctionElem.h. References m_fDensMax. Referenced by CHistogramDensityGradientGL::draw(), CWindowTransferFunctionEditor::on_ButtonOpen_clicked(), CWidgetHistogramDensityGradient::on_expose_event(), CWidgetHistogramDensity::on_expose_event(), and CFileWriterTFVVis::save(). |
|
|
Definition at line 88 of file CTransferFunctionElem.h. References m_fDensMin. Referenced by CHistogramDensityGradientGL::draw(), CWindowTransferFunctionEditor::on_ButtonOpen_clicked(), CWidgetHistogramDensityGradient::on_expose_event(), CWidgetHistogramDensity::on_expose_event(), and CFileWriterTFVVis::save(). |
|
|
Definition at line 321 of file CTransferFunctionElem.h. References m_sDescription. Referenced by CWindowTransferFunctionEditor::on_ButtonOpen_clicked(), and CFileWriterTFVVis::save(). |
|
|
Definition at line 188 of file CTransferFunctionElem.h. References m_RGBEmissivity. Referenced by CShearWarp2VRenderer::calculate(), CHistogramDensityGradientGL::draw(), CBaseVRenderer::getEmission(), CPreIntegrator::integrate(), CInt1VRenderer::integrateAlong(), CWindowTransferFunctionEditor::on_ButtonOpen_clicked(), CWidgetHistogramDensityGradient::on_expose_event(), CWidgetHistogramDensity::on_expose_event(), CCubeVRenderer::prepare(), and CFileWriterTFVVis::save(). |
|
|
Definition at line 264 of file CTransferFunctionElem.h. References m_fGlossiness. Referenced by CShearWarp2VRenderer::calculate(), CPreIntegrator::integrate(), CInt1VRenderer::integrateAlong(), CWindowTransferFunctionEditor::on_ButtonOpen_clicked(), CCubeVRenderer::prepare(), and CFileWriterTFVVis::save(). |
|
|
Definition at line 118 of file CTransferFunctionElem.h. References m_fGradMax. Referenced by CHistogramDensityGradientGL::draw(), CWindowTransferFunctionEditor::on_ButtonOpen_clicked(), CWidgetHistogramDensityGradient::on_expose_event(), and CFileWriterTFVVis::save(). |
|
|
Definition at line 108 of file CTransferFunctionElem.h. References m_fGradMin. Referenced by CHistogramDensityGradientGL::draw(), CWindowTransferFunctionEditor::on_ButtonOpen_clicked(), CWidgetHistogramDensityGradient::on_expose_event(), and CFileWriterTFVVis::save(). |
|
|
Definition at line 66 of file CTransferFunctionElem.h. References m_uiID. Referenced by CTransferFunction::add(), CWindowTransferFunctionEditor::on_ButtonOpen_clicked(), CWidgetHistogramDensityGradient::on_expose_event(), CWidgetHistogramDensity::on_expose_event(), and operator<(). |
|
|
Definition at line 213 of file CTransferFunctionElem.h. References m_RGBMaterialDiffuse. Referenced by CShearWarp2VRenderer::calculate(), CPreIntegrator::integrate(), CInt1VRenderer::integrateAlong(), CWindowTransferFunctionEditor::on_ButtonOpen_clicked(), CCubeVRenderer::prepare(), and CFileWriterTFVVis::save(). |
|
|
Definition at line 224 of file CTransferFunctionElem.h. References m_RGBMaterialSpecular. Referenced by CShearWarp2VRenderer::calculate(), CPreIntegrator::integrate(), CInt1VRenderer::integrateAlong(), CWindowTransferFunctionEditor::on_ButtonOpen_clicked(), CCubeVRenderer::prepare(), and CFileWriterTFVVis::save(). |
|
|
Definition at line 345 of file CTransferFunctionElem.h. References m_iType. Referenced by CFileWriterTFVVis::save(). |
|
|
Definition at line 355 of file CTransferFunctionElem.h. References m_bEnabled. |
|
|
checks if this transfer function element fits to a given density value
Definition at line 42 of file CTransferFunctionElem.h. References m_fDensMax, and m_fDensMin. |
|
|
checks if this transfer function element fits to a given gradient length
Definition at line 56 of file CTransferFunctionElem.h. References m_fGradMax, and m_fGradMin. |
|
|
compares two TransferFunctionElem by their ID
Definition at line 381 of file CTransferFunctionElem.h. References getID(). |
|
|
sets the basic absorptivity for this transfer function element
Definition at line 251 of file CTransferFunctionElem.h. References m_fAbsorptivity, m_signalChanged, and m_uiID. Referenced by CFileReaderTFVVis::load(), and CWindowTransferFunctionEditor::updateTransferFunction(). |
|
|
sets the maximal density this transfer function element works for
Definition at line 145 of file CTransferFunctionElem.h. References m_fDensMax, m_signalChanged, and m_uiID. Referenced by CFileReaderTFVVis::load(), and CWindowTransferFunctionEditor::updateTransferFunction(). |
|
|
sets the minimal density this transfer function element works for
Definition at line 130 of file CTransferFunctionElem.h. References m_fDensMin, m_signalChanged, and m_uiID. Referenced by CFileReaderTFVVis::load(), and CWindowTransferFunctionEditor::updateTransferFunction(). |
|
|
sets a description for this element
Definition at line 333 of file CTransferFunctionElem.h. References m_sDescription. Referenced by CFileReaderTFVVis::load(), and CWindowTransferFunctionEditor::updateTransferFunction(). |
|
|
sets the basic emissivity for this transfer function element
Definition at line 236 of file CTransferFunctionElem.h. References m_RGBEmissivity, m_signalChanged, and m_uiID. Referenced by CFileReaderTFVVis::load(), and CWindowTransferFunctionEditor::updateTransferFunction(). |
|
|
Definition at line 365 of file CTransferFunctionElem.h. References m_bEnabled, m_signalChanged, and m_uiID. Referenced by CWindowTransferFunctionEditor::updateTransferFunction(). |
|
|
sets the basic absorptivity for this transfer function element
Definition at line 276 of file CTransferFunctionElem.h. References m_fGlossiness, m_signalChanged, and m_uiID. Referenced by CFileReaderTFVVis::load(), and CWindowTransferFunctionEditor::updateTransferFunction(). |
|
|
sets the maximal gradient length this transfer function element works for
Definition at line 175 of file CTransferFunctionElem.h. References m_fGradMax, m_signalChanged, and m_uiID. Referenced by CFileReaderTFVVis::load(), and CWindowTransferFunctionEditor::updateTransferFunction(). |
|
|
sets the minimal gradient length this transfer function element works for
Definition at line 160 of file CTransferFunctionElem.h. References m_fGradMin, m_signalChanged, and m_uiID. Referenced by CFileReaderTFVVis::load(), and CWindowTransferFunctionEditor::updateTransferFunction(). |
|
|
give an ID to this element
Definition at line 78 of file CTransferFunctionElem.h. References m_uiID. Referenced by CFileReaderTFVVis::load(), CTransferFunction::swap(), and CWindowTransferFunctionEditor::updateTransferFunction(). |
|
|
sets the basic diffuse reflection property for this transfer function element
Definition at line 292 of file CTransferFunctionElem.h. References m_RGBMaterialDiffuse, m_signalChanged, and m_uiID. Referenced by CFileReaderTFVVis::load(), and CWindowTransferFunctionEditor::updateTransferFunction(). |
|
|
sets the basic specular reflection property for this transfer function element
Definition at line 308 of file CTransferFunctionElem.h. References m_RGBMaterialSpecular, m_signalChanged, and m_uiID. Referenced by CFileReaderTFVVis::load(), and CWindowTransferFunctionEditor::updateTransferFunction(). |
|
|
Signal that is emitted if density or gradient ranges are changed
Definition at line 29 of file CTransferFunctionElem.cpp. References m_signalChanged. Referenced by CTransferFunction::add(). |
|
||||||||||||
|
Since we encountered problems using the overloaded operator < together with the STL sort function, we tried providing explicitly a suitable compare function, which worked.
Definition at line 396 of file CTransferFunctionElem.h. |
|
|
Should this TFElement be used at all ? Definition at line 414 of file CTransferFunctionElem.h. Referenced by CTransferFunctionElem(), isEnabled(), and setEnabled(). |
|
|
Absorptivity Definition at line 424 of file CTransferFunctionElem.h. Referenced by CTransferFunctionElem(), getAbsorptivity(), and setAbsorptivity(). |
|
|
maximal density Definition at line 449 of file CTransferFunctionElem.h. Referenced by CTransferFunctionElem(), getDensMax(), isInDens(), and setDensMax(). |
|
|
minimal density Definition at line 444 of file CTransferFunctionElem.h. Referenced by CTransferFunctionElem(), getDensMin(), isInDens(), and setDensMin(). |
|
|
Glossiness ( power with which the specular light dot product is used ) Definition at line 439 of file CTransferFunctionElem.h. Referenced by CTransferFunctionElem(), getGlossiness(), and setGlossiness(). |
|
|
maximal gradient magnitude Definition at line 459 of file CTransferFunctionElem.h. Referenced by CTransferFunctionElem(), getGradMax(), isInGrad(), and setGradMax(). |
|
|
minimal gradient magnitude Definition at line 454 of file CTransferFunctionElem.h. Referenced by CTransferFunctionElem(), getGradMin(), isInGrad(), and setGradMin(). |
|
|
we might wanna have different type, yet to implement Definition at line 476 of file CTransferFunctionElem.h. Referenced by CTransferFunctionElem(), and getType(). |
|
|
Emissivity Definition at line 419 of file CTransferFunctionElem.h. Referenced by CTransferFunctionElem(), getEmissivity(), and setEmissivity(). |
|
|
Diffuse Reflection property Definition at line 429 of file CTransferFunctionElem.h. Referenced by CTransferFunctionElem(), getMaterialDiffuse(), and setMaterialDiffuse(). |
|
|
Specular Reflection property Definition at line 434 of file CTransferFunctionElem.h. Referenced by CTransferFunctionElem(), getMaterialSpecular(), and setMaterialSpecular(). |
|
|
description for this element. Definition at line 464 of file CTransferFunctionElem.h. Referenced by CTransferFunctionElem(), getDescription(), and setDescription(). |
|
|
signal
Definition at line 482 of file CTransferFunctionElem.h. Referenced by setAbsorptivity(), setDensMax(), setDensMin(), setEmissivity(), setEnabled(), setGlossiness(), setGradMax(), setGradMin(), setMaterialDiffuse(), setMaterialSpecular(), and signal_changed(). |
|
|
every part of the transfer function has a unique ID to simplify editing etc. I havn't taken the position in the list of CTransferFunction, since that might change after deleting elements etc. Definition at line 471 of file CTransferFunctionElem.h. Referenced by getID(), setAbsorptivity(), setDensMax(), setDensMin(), setEmissivity(), setEnabled(), setGlossiness(), setGradMax(), setGradMin(), setID(), setMaterialDiffuse(), and setMaterialSpecular(). |
1.4.3-20050530