anatomist  5.1.2
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 carto::Volume< AimsRGBA >
 Volume (int sizeX=1, int sizeY=1, int sizeZ=1, int sizeT=1, const AllocatorContext &allocatorContext=AllocatorContext(), bool allocated=true)
 
 Volume (const Position4Di &size, const AllocatorContext &allocatorContext=AllocatorContext(), bool allocated=true)
 
 Volume (int sizeX, int sizeY, int sizeZ, int sizeT, int bordersize, const AllocatorContext &allocatorContext=AllocatorContext(), bool allocated=true)
 
 Volume (const Position4Di &size, int bordersize, const AllocatorContext &allocatorContext=AllocatorContext(), bool allocated=true)
 
 Volume (int sizeX, int sizeY, int sizeZ, int sizeT, const Position4Di &border, const AllocatorContext &allocatorContext=AllocatorContext(), bool allocated=true)
 
 Volume (const Position4Di &size, const Position4Di &border, const AllocatorContext &allocatorContext=AllocatorContext(), bool allocated=true)
 
 Volume (const std::vector< int > &size, const AllocatorContext &allocatorContext=AllocatorContext(), bool allocated=true)
 
 Volume (const std::vector< int > &size, const std::vector< int > &border, const AllocatorContext &allocatorContext=AllocatorContext(), bool allocated=true)
 
 Volume (int sizeX, int sizeY, int sizeZ, int sizeT, T *buffer, const std::vector< size_t > *strides=0)
 
 Volume (const Position4Di &size, T *buffer, const std::vector< size_t > *strides=0)
 
 Volume (const std::vector< int > &size, T *buffer, const std::vector< size_t > *strides=0)
 
 Volume (rc_ptr< Volume< T > > other, const Position4Di &pos=Position4Di(0, 0, 0, 0), const Position4Di &size=Position4Di(-1, -1, -1, -1), const AllocatorContext &allocContext=AllocatorContext())
 
 Volume (rc_ptr< Volume< T > > other, const Position &pos, const Position &size=Position(), const AllocatorContext &allocContext=AllocatorContext())
 
 Volume (rc_ptr< Volume< T > > other, const Position &pos, const Position &size, T *buffer, const std::vector< size_t > &strides)
 
 Volume (const Volume< T > &other)
 
virtual ~Volume ()
 
Volume< T > & operator= (const Volume< T > &other)
 
Volume< T > & operator= (const T &value)
 
iterator begin ()
 
const_iterator begin () const
 
iterator end ()
 
const_iterator end () const
 
const T & operator() (long x, long y=0, long z=0, long t=0) const
 
T & operator() (long x, long y=0, long z=0, long t=0)
 
const T & operator() (const Position4Di &position) const
 
T & operator() (const Position4Di &position)
 
const T & operator() (const std::vector< int > &position) const
 
T & operator() (const std::vector< int > &position)
 
const T & operator() (long x1, long x2, long x3, long x4, long x5, long x6=0, long x7=0, long x8=0) const
 
T & operator() (long x1, long x2, long x3, long x4, long x5, long x6=0, long x7=0, long x8=0)
 
const T & at (long x, long y=0, long z=0, long t=0) const
 
T & at (long x, long y=0, long z=0, long t=0)
 
const T & at (const Position4Di &position) const
 
T & at (const Position4Di &position)
 
const T & at (const std::vector< int > &) const
 
T & at (const std::vector< int > &)
 
const T & at (const blitz::TinyVector< int, 1 > &) const
 
T & at (const blitz::TinyVector< int, 1 > &)
 
const T & at (const blitz::TinyVector< int, 2 > &) const
 
T & at (const blitz::TinyVector< int, 2 > &)
 
const T & at (const blitz::TinyVector< int, 3 > &) const
 
T & at (const blitz::TinyVector< int, 3 > &)
 
const T & at (const blitz::TinyVector< int, 4 > &) const
 
T & at (const blitz::TinyVector< int, 4 > &)
 
const T & at (const blitz::TinyVector< int, Volume< T >::DIM_MAX > &) const
 
T & at (const blitz::TinyVector< int, Volume< T >::DIM_MAX > &)
 
blitz::Array< T, Volume< T >::DIM_MAXat (const blitz::RectDomain< Volume< T >::DIM_MAX > &subdomain) const
 
blitz::Array< T, Volume< T >::DIM_MAXat (const blitz::StridedDomain< Volume< T >::DIM_MAX > &subdomain) const
 
blitz::Array< T, Volume< T >::DIM_MAXat (const blitz::Range &r0) const
 
blitz::Array< T, Volume< T >::DIM_MAXat (const blitz::Range &r0, const blitz::Range &r1) const
 
blitz::Array< T, Volume< T >::DIM_MAXat (const blitz::Range &r0, const blitz::Range &r1, const blitz::Range &r2) const
 
blitz::Array< T, Volume< T >::DIM_MAXat (const blitz::Range &r0, const blitz::Range &r1, const blitz::Range &r2, const blitz::Range &r3) const
 
const T & at (long x1, long x2, long x3, long x4, long x5, long x6=0, long x7=0, long x8=0) const
 
T & at (long x1, long x2, long x3, long x4, long x5, long x6=0, long x7=0, long x8=0)
 
virtual void initialize ()
 
const AllocatorContext & allocatorContext () const
 
void allocate ()
 
virtual void reallocate (int sizeX=1, int sizeY=1, int sizeZ=1, int sizeT=1, bool keepcontents=false, const AllocatorContext &allocatorContext=AllocatorContext(), bool allocate=true, const std::vector< size_t > *strides=0)
 
virtual void reallocate (const Position4Di &size, bool keepcontents=false, const AllocatorContext &allocatorContext=AllocatorContext(), bool allocate=true, const std::vector< size_t > *strides=0)
 
virtual void reallocate (const std::vector< int > &size, bool keepcontents=false, const AllocatorContext &allocatorContext=AllocatorContext(), bool allocate=true, const std::vector< size_t > *strides=0)
 
Volume< T > copy () const
 
Volume< OUTP > copy () const
 
Volume< T > deepcopy () const
 
Volume< OUTP > deepcopy () const
 
Volume< T > copyStructure () const
 
Volume< OUTP > copyStructure () const
 
void copySubVolume (const Volume< T > &source, const std::vector< int > &pos=std::vector< int >())
 
void copySubVolume (const rc_ptr< Volume< T > > &source, const std::vector< int > &pos=std::vector< int >())
 
 operator Volume< OUTP > () const
 
int getLevelsCount () const
 
int refLevel (const int level) const
 
rc_ptr< Volume< T > > refVolume () const
 
rc_ptr< Volume< T > > refVolumeAtLevel (const int level) const
 
void setRefVolume (const rc_ptr< Volume< T > > &refvol)
 
const PositionposInRefVolume () const
 
Position posInRefVolumeAtLevel (const int level) const
 
void setPosInRefVolume (const Position4Di &pos)
 
void setPosInRefVolume (const Position &pos)
 
std::vector< int > getBorders () const
 
std::vector< size_t > getStrides () const
 
 operator bool () const
 
bool all () const
 
bool any () const
 
min () const
 
max () const
 
DataTypeTraits< T >::LongType sum () const
 
void fill (const T &value)
 
void fillBorder (const T &value)
 
- Public Member Functions inherited from carto::VolumeProxy< class >
 VolumeProxy (int sizeX=1, int sizeY=1, int sizeZ=1, int sizeT=1)
 
 VolumeProxy (const std::vector< int > &size)
 
 VolumeProxy (const VolumeProxy< T > &other)
 
virtual ~VolumeProxy ()
 
int getSizeX () const
 
int getSizeY () const
 
int getSizeZ () const
 
int getSizeT () const
 
std::vector< int > getSize () const
 
std::vector< float > getVoxelSize () const
 
void setVoxelSize (float vx, float vy=1., float vz=1., float vt=1.)
 
void setVoxelSize (const std::vector< float > &vs)
 
VolumeProxy< T > & operator= (const VolumeProxy< T > &other)
 
virtual void copyHeaderFrom (const PropertySet &other)
 
virtual void copyHeaderFrom (const Object &other)
 
- Public Member Functions inherited from carto::Headered
 Headered ()
 
 Headered (const Headered &other)
 
virtual ~Headered ()
 
Headeredoperator= (const Headered &other)
 
const PropertySetheader () const
 
PropertySetheader ()
 
void addPropertyFilter (const rc_ptr< PropertyFilter > &propertyFilter)
 
bool hasPropertyFilter (const std::string &propertyFilterName) const
 
bool connect (const std::string &propertyFilterName, const PropertyFilter::Slot &slot)
 
bool disconnect (const std::string &propertyFilterName, const PropertyFilter::Slot &slot)
 
std::set< rc_ptr< PropertyFilter > > getPropertyFilters (const std::string &propertyName) const
 
void delay ()
 
void flush ()
 
void blockSignals (bool)
 
bool signalsBlocked () const
 
std::string uuid ()
 
bool copyUuid (const PropertySet &)
 
bool copyUuid (const Headered &)
 
- Public Member Functions inherited from carto::RCObject
 RCObject ()
 
 RCObject (const RCObject &)
 
RCObjectoperator= (const RCObject &)
 
virtual ~RCObject ()
 
- Public Member Functions inherited from carto::Observer
virtual ~Observer ()
 

Protected Attributes

std::string _name
 
bool _transp
 
- Protected Attributes inherited from carto::Volume< AimsRGBA >
AllocatedVector< T > _items
 
blitz::Array< T, Volume< T >::DIM_MAX_blitz
 
rc_ptr< Volume< T > > _refvol
 
std::vector< int > _pos
 
- Protected Attributes inherited from carto::VolumeProxy< class >
std::vector< int > _size
 

Additional Inherited Members

- Public Types inherited from carto::Volume< AimsRGBA >
typedef std::vector< int > Position
 
typedef T datatype
 
typedef blitz::Array< T, Volume< T >::DIM_MAX >::iterator iterator
 
typedef blitz::Array< T, Volume< T >::DIM_MAX >::const_iterator const_iterator
 
- Public Types inherited from carto::RCObject
typedef int RefCounterType
 
- Public Attributes inherited from carto::Volume< AimsRGBA >
 DIM_MAX
 
- Protected Member Functions inherited from carto::Volume< AimsRGBA >
void allocate (int oldSizeX, int oldSizeY, int oldSizeZ, int oldSizeT, bool allocate, const AllocatorContext &allocatorContext, const std::vector< size_t > *strides=0)
 
void allocate (const std::vector< int > &oldSize, bool allocate, const AllocatorContext &allocatorContext, const std::vector< size_t > *strides=0)
 
void slotSizeChanged (const PropertyFilter &propertyFilter)
 
void updateItemsBuffer ()
 
void constructBorders (const Position &bordersize, const AllocatorContext &allocatorContext, bool allocated)
 
- Protected Member Functions inherited from carto::Observer
 Observer ()
 

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.

◆ 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 ( )

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: