PbNonLinearDataMapping Class Reference

MeshViz Class to define non linear data mapping. More...

#include <MeshViz/graph/PbNonLinearDataMapping.h>

Inheritance diagram for PbNonLinearDataMapping:
PbDataMapping PbBase

List of all members.

Public Types

typedef const SbColorRGBFunction (void *userData, float)
typedef const float * HLSFunction (void *userData, float)
typedef float TransparencyFunction (void *userData, float)

Public Member Functions

 PbNonLinearDataMapping ()
void setRGBFunction (RGBFunction *func, void *userData)
void setRGBFunction (const SbColor *(*func)(float))
void setHLSFunction (HLSFunction *func, void *userData)
void setHLSFunction (const float *(*func)(float))
void setTransparencyFunction (TransparencyFunction *func, void *userData)
void setTransparencyFunction (float(*func)(float))

Detailed Description

MeshViz Class to define non linear data mapping.

This class is used to define non linear data mapping. This object defines a non linear association between colors, transparencies and floating-point values. In other words, this association is defined by 2 functions F(c,v) and F(c,t):

         F(c,v)(V) = C (with c being a color and v being a value).
         F(t,v)(V) = T (with t being a transparency and v being a value).

F(c,v) and F(t,v) are given by the user. If they are not given by the user, default one are used. The default F(c,v) computes a linear data mapping between black and white. The default F(c,t) returns always 0.

Member Typedef Documentation

typedef const float* PbNonLinearDataMapping::HLSFunction(void *userData, float)
typedef const SbColor* PbNonLinearDataMapping::RGBFunction(void *userData, float)
typedef float PbNonLinearDataMapping::TransparencyFunction(void *userData, float)

Constructor & Destructor Documentation

PbNonLinearDataMapping::PbNonLinearDataMapping (  ) 

Default constructor.

Member Function Documentation

void PbNonLinearDataMapping::setHLSFunction ( const float *(*)(float)  func  ) 


void PbNonLinearDataMapping::setHLSFunction ( HLSFunction func,
void *  userData 

Sets a non linear function for data mapping.

This function returns a HLS color.

void PbNonLinearDataMapping::setRGBFunction ( const SbColor *(*)(float)  func  ) 


void PbNonLinearDataMapping::setRGBFunction ( RGBFunction func,
void *  userData 

Sets a non linear function for data mapping.

This function returns a RGB color.

void PbNonLinearDataMapping::setTransparencyFunction ( float(*)(float)  func  ) 


void PbNonLinearDataMapping::setTransparencyFunction ( TransparencyFunction func,
void *  userData 

Sets a function returning a transparency value.

If no function is set, a default function is used (returning always 0.0).

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

Open Inventor Toolkit reference manual, generated on 12 Sep 2022
Copyright © Thermo Fisher Scientific All rights reserved.