#include <anatomist/color/objectPalette.h>
|  | 
|  | AObjectPalette (carto::rc_ptr< APalette > pal) | 
|  | 
|  | AObjectPalette (const AObjectPalette &x) | 
|  | 
| virtual | ~AObjectPalette () | 
|  | 
| virtual AObjectPalette * | clone () const | 
|  | 
| virtual AObjectPalette & | operator= (const AObjectPalette &x) | 
|  | 
| carto::rc_ptr< APalette > | refPalette () const | 
|  | 
| carto::rc_ptr< APalette > | refPalette2 () const | 
|  | 
| void | setRefPalette (carto::rc_ptr< APalette > pal) | 
|  | 
| void | setRefPalette2 (carto::rc_ptr< APalette > pal) | 
|  | 
| const carto::Volume< AimsRGBA > * | colors () const | 
|  | 
| carto::Volume< AimsRGBA > * | colors () | 
|  | 
| void | create (unsigned dimx, unsigned dimy=1, unsigned dimz=1, unsigned dimt=1) | 
|  | 
| virtual void | fill () | 
|  | 
| float | min1 () const | 
|  | 
| float | max1 () const | 
|  | 
| float | min2 () const | 
|  | 
| float | max2 () const | 
|  | 
| int | palette1DMapping () const | 
|  | 
| std::string | palette1DMappingName () const | 
|  | 
| void | setMin1 (float x) | 
|  | 
| void | setMax1 (float x) | 
|  | 
| void | setMin2 (float x) | 
|  | 
| void | setMax2 (float x) | 
|  | 
| void | setPalette1DMapping (Palette1DMapping palette1DMapping) | 
|  | 
| void | setPalette1DMappingName (std::string palette1DMappingName) | 
|  | 
| std::string | mixMethodName () const | 
|  | 
| void | setMixMethod (const std::string &name) | 
|  | 
| float | linearMixFactor () const | 
|  | 
| void | setLinearMixFactor (float x) | 
|  | 
| bool | is2dMode () const | 
|  | 
| void | set2dMode (bool x) | 
|  | 
| bool | isTransparent () const | 
|  | 
| AimsRGBA | normColor (float x, float y=0) const | 
|  | 
| AimsRGBA | normColor (const Point2df &pos) const | 
|  | 
| bool | zeroCenteredAxis1 () const | 
|  | 
| bool | zeroCenteredAxis2 () const | 
|  | 
| void | setZeroCenteredAxis1 (bool x) | 
|  | 
| void | setZeroCenteredAxis2 (bool x) | 
|  | 
| bool | set (const carto::GenericObject &) | 
|  | 
| carto::Object | genericDescription () const | 
|  | 
| int | maxSizeX () const | 
|  | Maximum size of the internal palette image.  More... 
 | 
|  | 
| int | maxSizeY () const | 
|  | 
| void | setMaxSize (int maxsizex, int maxsizey) | 
|  | 
| int | glMaxSizeX () const | 
|  | Maximum size of the OpenGL palette image, after scaling.  More... 
 | 
|  | 
| int | glMaxSizeY () const | 
|  | 
| void | glSetMaxSize (int glmaxsizex, int glmaxsizey) | 
|  | 
| void | clearColors () | 
|  | 
| void | copyColors (const AObjectPalette &pal) | 
|  | if pal colors size is compatible, just copy it  More... 
 | 
|  | 
| void | copyOrFillColors (const AObjectPalette &pal) | 
|  | if pal colors size is compatible, just copy it; otherwise call fill()  More... 
 | 
|  | 
| QImage * | toQImage (int w=0, int h=0) const | 
|  | 
|  | 
| static AimsRGBA | palette2DMixMethod (const carto::Volume< AimsRGBA > &map1, const carto::Volume< AimsRGBA > *map2, unsigned x, unsigned y, const AObjectPalette &pal) | 
|  | 
| static AimsRGBA | linearMixMethod (const carto::Volume< AimsRGBA > &map1, const carto::Volume< AimsRGBA > *map2, unsigned x, unsigned y, const AObjectPalette &pal) | 
|  | 
| static AimsRGBA | geometricMixMethod (const carto::Volume< AimsRGBA > &map1, const carto::Volume< AimsRGBA > *map2, unsigned x, unsigned y, const AObjectPalette &pal) | 
|  | 
Definition at line 48 of file objectPalette.h.
 
◆ MixMethod
◆ Palette1DMapping
◆ AObjectPalette() [1/2]
◆ AObjectPalette() [2/2]
◆ ~AObjectPalette()
  
  | 
        
          | virtual anatomist::AObjectPalette::~AObjectPalette | ( |  | ) |  |  | virtual | 
 
 
◆ clearColors()
      
        
          | void anatomist::AObjectPalette::clearColors | ( |  | ) |  | 
      
 
 
◆ clone()
◆ colors() [1/2]
◆ colors() [2/2]
◆ copyColors()
      
        
          | void anatomist::AObjectPalette::copyColors | ( | const AObjectPalette & | pal | ) |  | 
      
 
if pal colors size is compatible, just copy it 
 
 
◆ copyOrFillColors()
      
        
          | void anatomist::AObjectPalette::copyOrFillColors | ( | const AObjectPalette & | pal | ) |  | 
      
 
if pal colors size is compatible, just copy it; otherwise call fill() 
 
 
◆ create()
      
        
          | void anatomist::AObjectPalette::create | ( | unsigned | dimx, | 
        
          |  |  | unsigned | dimy = 1, | 
        
          |  |  | unsigned | dimz = 1, | 
        
          |  |  | unsigned | dimt = 1 | 
        
          |  | ) |  |  | 
      
 
 
◆ defaultMixMethods()
  
  | 
        
          | static std::map<std::string, MixMethod> anatomist::AObjectPalette::defaultMixMethods | ( |  | ) |  |  | staticprotected | 
 
 
◆ fill()
  
  | 
        
          | virtual void anatomist::AObjectPalette::fill | ( |  | ) |  |  | virtual | 
 
 
◆ genericDescription()
      
        
          | carto::Object anatomist::AObjectPalette::genericDescription | ( |  | ) | const | 
      
 
 
◆ geometricMixMethod()
◆ glMaxSizeX()
  
  | 
        
          | int anatomist::AObjectPalette::glMaxSizeX | ( |  | ) | const |  | inline | 
 
Maximum size of the OpenGL palette image, after scaling. 
0 means unused: no GL palette image is needed. -1 means no limit: may grow as large as the reference palette image -2 means unchanged 
Definition at line 143 of file objectPalette.h.
References _glMaxSizeX.
 
 
◆ glMaxSizeY()
  
  | 
        
          | int anatomist::AObjectPalette::glMaxSizeY | ( |  | ) | const |  | inline | 
 
 
◆ glSetMaxSize()
      
        
          | void anatomist::AObjectPalette::glSetMaxSize | ( | int | glmaxsizex, | 
        
          |  |  | int | glmaxsizey | 
        
          |  | ) |  |  | 
      
 
 
◆ is2dMode()
  
  | 
        
          | bool anatomist::AObjectPalette::is2dMode | ( |  | ) | const |  | inline | 
 
 
◆ isTransparent()
  
  | 
        
          | bool anatomist::AObjectPalette::isTransparent | ( |  | ) | const |  | inline | 
 
 
◆ linearMixFactor()
  
  | 
        
          | float anatomist::AObjectPalette::linearMixFactor | ( |  | ) | const |  | inline | 
 
 
◆ linearMixMethod()
◆ max1()
  
  | 
        
          | float anatomist::AObjectPalette::max1 | ( |  | ) | const |  | inline | 
 
 
◆ max2()
  
  | 
        
          | float anatomist::AObjectPalette::max2 | ( |  | ) | const |  | inline | 
 
 
◆ maxSizeX()
  
  | 
        
          | int anatomist::AObjectPalette::maxSizeX | ( |  | ) | const |  | inline | 
 
Maximum size of the internal palette image. 
0 means unused: no palette image is needed. -1 means no limit: may grow as large as the reference palette image -2 means unchanged 
Definition at line 135 of file objectPalette.h.
References _maxSizeX.
 
 
◆ maxSizeY()
  
  | 
        
          | int anatomist::AObjectPalette::maxSizeY | ( |  | ) | const |  | inline | 
 
 
◆ min1()
  
  | 
        
          | float anatomist::AObjectPalette::min1 | ( |  | ) | const |  | inline | 
 
 
◆ min2()
  
  | 
        
          | float anatomist::AObjectPalette::min2 | ( |  | ) | const |  | inline | 
 
 
◆ mixMethodName()
  
  | 
        
          | std::string anatomist::AObjectPalette::mixMethodName | ( |  | ) | const |  | inline | 
 
 
◆ normColor() [1/2]
◆ normColor() [2/2]
      
        
          | AimsRGBA anatomist::AObjectPalette::normColor | ( | float | x, | 
        
          |  |  | float | y = 0 | 
        
          |  | ) |  | const | 
      
 
 
◆ operator=()
◆ palette1DMapping()
  
  | 
        
          | int anatomist::AObjectPalette::palette1DMapping | ( |  | ) | const |  | inline | 
 
 
◆ palette1DMappingName()
  
  | 
        
          | std::string anatomist::AObjectPalette::palette1DMappingName | ( |  | ) | const |  | inline | 
 
 
◆ palette2DMixMethod()
◆ refPalette()
◆ refPalette2()
◆ set()
◆ set2dMode()
  
  | 
        
          | void anatomist::AObjectPalette::set2dMode | ( | bool | x | ) |  |  | inline | 
 
 
◆ setLinearMixFactor()
  
  | 
        
          | void anatomist::AObjectPalette::setLinearMixFactor | ( | float | x | ) |  |  | inline | 
 
 
◆ setMax1()
  
  | 
        
          | void anatomist::AObjectPalette::setMax1 | ( | float | x | ) |  |  | inline | 
 
 
◆ setMax2()
  
  | 
        
          | void anatomist::AObjectPalette::setMax2 | ( | float | x | ) |  |  | inline | 
 
 
◆ setMaxSize()
      
        
          | void anatomist::AObjectPalette::setMaxSize | ( | int | maxsizex, | 
        
          |  |  | int | maxsizey | 
        
          |  | ) |  |  | 
      
 
 
◆ setMin1()
  
  | 
        
          | void anatomist::AObjectPalette::setMin1 | ( | float | x | ) |  |  | inline | 
 
 
◆ setMin2()
  
  | 
        
          | void anatomist::AObjectPalette::setMin2 | ( | float | x | ) |  |  | inline | 
 
 
◆ setMixMethod()
      
        
          | void anatomist::AObjectPalette::setMixMethod | ( | const std::string & | name | ) |  | 
      
 
 
◆ setPalette1DMapping()
  
  | 
        
          | void anatomist::AObjectPalette::setPalette1DMapping | ( | Palette1DMapping | palette1DMapping | ) |  |  | inline | 
 
 
◆ setPalette1DMappingName()
  
  | 
        
          | void anatomist::AObjectPalette::setPalette1DMappingName | ( | std::string | palette1DMappingName | ) |  |  | inline | 
 
 
◆ setRefPalette()
◆ setRefPalette2()
◆ setZeroCenteredAxis1()
  
  | 
        
          | void anatomist::AObjectPalette::setZeroCenteredAxis1 | ( | bool | x | ) |  |  | inline | 
 
 
◆ setZeroCenteredAxis2()
  
  | 
        
          | void anatomist::AObjectPalette::setZeroCenteredAxis2 | ( | bool | x | ) |  |  | inline | 
 
 
◆ toQImage()
      
        
          | QImage* anatomist::AObjectPalette::toQImage | ( | int | w = 0, | 
        
          |  |  | int | h = 0 | 
        
          |  | ) |  | const | 
      
 
 
◆ zeroCenteredAxis1()
  
  | 
        
          | bool anatomist::AObjectPalette::zeroCenteredAxis1 | ( |  | ) | const |  | inline | 
 
 
◆ zeroCenteredAxis2()
  
  | 
        
          | bool anatomist::AObjectPalette::zeroCenteredAxis2 | ( |  | ) | const |  | inline | 
 
 
◆ _colors
◆ _glMaxSizeX
  
  | 
        
          | int anatomist::AObjectPalette::_glMaxSizeX |  | protected | 
 
 
◆ _glMaxSizeY
  
  | 
        
          | int anatomist::AObjectPalette::_glMaxSizeY |  | protected | 
 
 
◆ _linMixFactor
  
  | 
        
          | float anatomist::AObjectPalette::_linMixFactor |  | protected | 
 
 
◆ _max
  
  | 
        
          | float anatomist::AObjectPalette::_max |  | protected | 
 
 
◆ _max2
  
  | 
        
          | float anatomist::AObjectPalette::_max2 |  | protected | 
 
 
◆ _maxSizeX
  
  | 
        
          | int anatomist::AObjectPalette::_maxSizeX |  | protected | 
 
 
◆ _maxSizeY
  
  | 
        
          | int anatomist::AObjectPalette::_maxSizeY |  | protected | 
 
 
◆ _min
  
  | 
        
          | float anatomist::AObjectPalette::_min |  | protected | 
 
 
◆ _min2
  
  | 
        
          | float anatomist::AObjectPalette::_min2 |  | protected | 
 
 
◆ _mixMethod
  
  | 
        
          | MixMethod anatomist::AObjectPalette::_mixMethod |  | protected | 
 
 
◆ _mixMethodName
  
  | 
        
          | std::string anatomist::AObjectPalette::_mixMethodName |  | protected | 
 
 
◆ _mode2d
  
  | 
        
          | bool anatomist::AObjectPalette::_mode2d |  | protected | 
 
 
◆ _palette1DMapping
◆ _refPal
◆ _refPal2
◆ _transp
  
  | 
        
          | bool anatomist::AObjectPalette::_transp |  | protected | 
 
 
◆ _zeroCentered1
  
  | 
        
          | bool anatomist::AObjectPalette::_zeroCentered1 |  | protected | 
 
 
◆ _zeroCentered2
  
  | 
        
          | bool anatomist::AObjectPalette::_zeroCentered2 |  | protected | 
 
 
◆ mixMethods
  
  | 
        
          | std::map<std::string, MixMethod> anatomist::AObjectPalette::mixMethods |  | static | 
 
 
The documentation for this class was generated from the following file: