anatomist  5.0.5
3D neuroimaging data viewer
anatomist::APalette Class Reference

#include <anatomist/color/palette.h>

Inheritance diagram for anatomist::APalette:
Collaboration diagram for anatomist::APalette:

Public Member Functions

 APalette (const std::string &name="", unsigned dimx=256, unsigned dimy=1, unsigned dimz=1, unsigned dimt=1)
 
virtual ~APalette ()
 
std::string name () const
 
void setName (const std::string &name)
 
bool isTransparent () const
 
void update ()
 
- Public Member Functions inherited from AimsData< AimsRGBA >
iterator begin ()
 
const_iterator begin () const
 
iterator end ()
 
const_iterator end () const
 
bool empty () const
 
 AimsData (int dimx=1, int dimy=1, int dimz=1, int dimt=1, int borderw=0)
 
 AimsData (int dimx, int dimy, int dimz, int dimt, int borderw, const carto::AllocatorContext &al)
 
 AimsData (const AimsData< AimsRGBA > &other)
 
 AimsData (const AimsData< AimsRGBA > &other, int borderw)
 
 AimsData (carto::rc_ptr< carto::Volume< AimsRGBA > > vol)
 
virtual ~AimsData ()
 
AimsData< AimsRGBA > & operator= (carto::rc_ptr< carto::Volume< AimsRGBA > > vol)
 
AimsData< AimsRGBA > & operator= (const AimsData< AimsRGBA > &)
 
AimsData< AimsRGBA > & operator= (const AimsRGBA &)
 
carto::rc_ptr< carto::Volume< AimsRGBA > > volume ()
 
carto::rc_ptr< carto::Volume< AimsRGBA > > volume () const
 
 operator carto::rc_ptr< carto::Volume< AimsRGBA > > ()
 
 operator const carto::rc_ptr< carto::Volume< AimsRGBA > > () const
 
const carto::AllocatorContext & allocator () const
 
int dimX () const
 
int dimY () const
 
int dimZ () const
 
int dimT () const
 
float sizeX () const
 
float sizeY () const
 
float sizeZ () const
 
float sizeT () const
 
void setSizeX (float sizex)
 
void setSizeY (float sizey)
 
void setSizeZ (float sizez)
 
void setSizeT (float sizet)
 
void setSizeXYZT (float sizex=1.0f, float sizey=1.0f, float sizez=1.0f, float sizet=1.0f)
 
void setSizeXYZT (const AimsData< AimsRGBA > &other)
 
const aims::Headerheader () const
 
aims::Headerheader ()
 
void setHeader (aims::Header *hdr)
 
reference operator[] (size_type n)
 
const_reference operator[] (size_type n) const
 
reference operator() (size_type x=0, size_type y=0, size_type z=0, size_type t=0)
 
const_reference operator() (size_type x=0, size_type y=0, size_type z=0, size_type t=0) const
 
reference operator() (const Point4d &pt)
 
const_reference operator() (const Point4d &pt) const
 
reference operator() (const Point4dl &pt)
 
const_reference operator() (const Point4dl &pt) const
 
reference operator() (const Point3d &pt)
 
const_reference operator() (const Point3d &pt) const
 
reference operator() (const Point3dl &pt)
 
const_reference operator() (const Point3dl &pt) const
 
reference operator() (const Point2d &pt)
 
const_reference operator() (const Point2d &pt) const
 
reference operator() (const Point2dl &pt)
 
const_reference operator() (const Point2dl &pt) const
 
AimsRGBA minimum () const
 
AimsRGBA maximum () const
 
AimsRGBA minIndex (int *x, int *y, int *z, int *t) const
 
AimsRGBA maxIndex (int *x, int *y, int *z, int *t) const
 
void fillBorder (const AimsRGBA &val)
 
AimsData< AimsRGBAclone () const
 
AimsData< AimsRGBAcross (const AimsData< AimsRGBA > &other)
 
AimsData< AimsRGBA > & transpose ()
 
- Public Member Functions inherited from carto::RCObject
 RCObject ()
 
 RCObject (const RCObject &)
 
RCObjectoperator= (const RCObject &)
 
virtual ~RCObject ()
 
- Public Member Functions inherited from aims::Border
 Border (int dimx, int dimy, int dimz, int width=0)
 
 Border (int dimx, int dimy, int dimz, int bx1, int bx2, int by1, int by2, int bz1, int bz2)
 
 Border (int dimx, int dimy, int dimz, const std::vector< int > &borders)
 
virtual ~Border ()
 
int borderWidth () const
 
int oFirstPoint () const
 
int oLastPoint () const
 
int oLine () const
 
int oPointBetweenLine () const
 
int oSlice () const
 
int oLineBetweenSlice () const
 
int oVolume () const
 
int oSliceBetweenVolume () const
 
const std::vector< int > & borders () const
 
 Border (int dimx, int dimy, int dimz, int width=0)
 
 Border (int dimx, int dimy, int dimz, int bx1, int bx2, int by1, int by2, int bz1, int bz2)
 
 Border (int dimx, int dimy, int dimz, const std::vector< int > &borders)
 
virtual ~Border ()
 
int borderWidth () const
 
int oFirstPoint () const
 
int oLastPoint () const
 
int oLine () const
 
int oPointBetweenLine () const
 
int oSlice () const
 
int oLineBetweenSlice () const
 
int oVolume () const
 
int oSliceBetweenVolume () const
 
const std::vector< int > & borders () const
 

Protected Attributes

std::string _name
 
bool _transp
 
- Protected Attributes inherited from aims::Border
std::vector< int > _borders
 
int _oFirstPoint
 
int _oLastPoint
 
int _oLine
 
int _oPointBetweenLine
 
int _oSlice
 
int _oLineBetweenSlice
 
int _oVolume
 
int _oSliceBetweenVolume
 

Additional Inherited Members

- Public Types inherited from AimsData< AimsRGBA >
typedef AimsRGBA value_type
 
typedef AimsRGBApointer
 
typedef AimsRGBA **** pointer4d
 
typedef AimsRGBAiterator
 
typedef const AimsRGBAconst_iterator
 
typedef AimsRGBAreference
 
typedef const AimsRGBAconst_reference
 
typedef size_t size_type
 
typedef ptrdiff_t difference_type
 
- Public Types inherited from carto::RCObject
typedef int RefCounterType
 
- Protected Member Functions inherited from aims::Border
void _setBorder (int dimx, int dimy, int dimz, int width)
 
void _setBorder (int dimx, int dimy, int dimz, int bx1, int bx2, int by1, int by2, int bz1, int bz2)
 
void _setBorder (int dimx, int dimy, int dimz, const std::vector< int > &borders)
 
void _setBorder (int dimx, int dimy, int dimz, int width)
 
void _setBorder (int dimx, int dimy, int dimz, int bx1, int bx2, int by1, int by2, int bz1, int bz2)
 
void _setBorder (int dimx, int dimy, int dimz, const std::vector< int > &borders)
 

Detailed Description

Definition at line 47 of file palette.h.

Constructor & Destructor Documentation

◆ APalette()

anatomist::APalette::APalette ( const std::string &  name = "",
unsigned  dimx = 256,
unsigned  dimy = 1,
unsigned  dimz = 1,
unsigned  dimt = 1 
)

◆ ~APalette()

virtual anatomist::APalette::~APalette ( )
virtual

Member Function Documentation

◆ isTransparent()

bool anatomist::APalette::isTransparent ( ) const
inline

Definition at line 55 of file palette.h.

References _transp, and update().

◆ name()

std::string anatomist::APalette::name ( ) const
inline

Definition at line 53 of file palette.h.

References _name.

Referenced by setName().

◆ setName()

void anatomist::APalette::setName ( const std::string &  name)
inline

Definition at line 54 of file palette.h.

References _name, and name().

◆ update()

void anatomist::APalette::update ( )

Referenced by isTransparent().

Member Data Documentation

◆ _name

std::string anatomist::APalette::_name
protected

Definition at line 59 of file palette.h.

Referenced by name(), and setName().

◆ _transp

bool anatomist::APalette::_transp
protected

Definition at line 60 of file palette.h.

Referenced by isTransparent().


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