PoLinearDataMapping Class Reference
[Misc]

MeshViz Node class to define a linear data mapping. More...

#include <MeshViz/nodes/PoLinearDataMapping.h>

Inheritance diagram for PoLinearDataMapping:
PoDataMapping PoNode SoNode SoFieldContainer SoBase SoRefCounter SoTypedObject

List of all members.

Public Member Functions

virtual SoType getTypeId () const
 PoLinearDataMapping ()
virtual const SbColorgetColor (float value)
virtual const SbColorgetColor (float value, float &transparency)

Static Public Member Functions

static SoType getClassTypeId ()

Public Attributes

SoSFFloat value1
SoSFColor color1
SoSFFloat transparency1
SoSFFloat value2
SoSFColor color2
SoSFFloat transparency2

Detailed Description

MeshViz Node class to define a linear data mapping.

This node defines the current data mapping for all subsequent MeshViz representations which use it. There is no data mapping until a PoDataMapping node is traversed.

This node defines a 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 linear, so only two values (value1 and value2), two associated transparencies (transparency1,transparency2) and two associated colors (color1 and color2) define these functions. For a given value vi, its color ci is determined by linear interpolation between (value1,color1) and (value2,color2). Idem for the transparencies.

FILE FORMAT/DEFAULT


Open Inventor Toolkit reference manual, generated on 4 Sep 2023
Copyright © Thermo Fisher Scientific All rights reserved.
https://www.openinventor.com/