15 #include "generalmod.h" 16 #include "generalmod.h" 43 : coltab_(cs), coltabmappersu_(cm)
44 , showsel_(false), dpscolid_(id) {}
49 : selgrpnms_(nms), selgrpcols_(cols)
50 , showsel_(true), dpscolid_(-1) {}
53 virtual DataPointSetDisplayProp*
clone()
const 56 return new DataPointSetDisplayProp( selgrpnms_, selgrpcols_ );
58 return new DataPointSetDisplayProp(coltab_,coltabmappersu_,
68 {
return coltabmappersu_; }
74 return selgrpcols_.validIdx(
mNINT32(val)) ? selgrpcols_[
mNINT32(val)]
79 return coltab_.undefColor();
82 mapper.
setup_ = coltabmappersu_;
84 Color col = coltab_.color( pos );
110 virtual void lock() = 0;
111 virtual void unLock() = 0;
113 virtual bool hasDisplays()
const = 0;
114 virtual DispID getDisplayID(
const DataPointSet&)
const = 0;
115 virtual int getNrViewers()
const = 0;
116 virtual const char* getViewerName(
int)
const = 0;
120 virtual void updateDisplay(DispID
id,
123 virtual void updateDisplay(DispID
id,
const DataPointSet&) =0;
124 virtual void removeDisplay(DispID) = 0;
126 {
return availableviewers_; }
132 {
return dispprop_; }
134 {
delete dispprop_; dispprop_ = prop; }
137 {
delete dispprop_; dispprop_ = 0; }
#define mIsUdf(val)
Use mIsUdf to check for undefinedness of simple types.
Definition: undefval.h:287
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
virtual ~DataPointSetDisplayProp()
Definition: dpsdispmgr.h:51
Set of data points with group selection.
Definition: datapointset.h:48
Maps from [0,1] -> Color.
Definition: coltabsequence.h:37
void setTransparency(unsigned char t_)
ColTab::MapperSetup coltabmappersu_
Definition: dpsdispmgr.h:94
DataPointSetDisplayMgr()
Definition: dpsdispmgr.h:141
DataPointSetDisplayProp(const ColTab::Sequence &cs, const ColTab::MapperSetup &cm, int id)
Definition: dpsdispmgr.h:40
Set of BufferString objects.
Definition: bufstringset.h:28
Maps data values to colortable positions: [0,1].
Definition: coltabmapper.h:84
DataPointSet display manager.
Definition: dpsdispmgr.h:104
const TypeSet< Color > & selGrpColors() const
Definition: dpsdispmgr.h:65
virtual Color getColor(float val) const
Definition: dpsdispmgr.h:70
#define mNINT32(x)
Definition: commondefs.h:45
BufferStringSet selgrpnms_
Definition: dpsdispmgr.h:91
TypeSet< int > availableviewers_
Definition: dpsdispmgr.h:143
virtual ~DataPointSetDisplayMgr()
Definition: dpsdispmgr.h:109
void setDispProp(DataPointSetDisplayProp *prop)
Definition: dpsdispmgr.h:133
const BufferStringSet & selGrpNames() const
Definition: dpsdispmgr.h:64
Interface for DataPointSet Displays.
Definition: dpsdispmgr.h:37
DataPointSetDisplayProp * dispprop_
Definition: dpsdispmgr.h:144
const DataPointSetDisplayProp * dispProp() const
Definition: dpsdispmgr.h:131
Setup class for colortable Mapper.
Definition: coltabmapper.h:35
void clearDispProp()
Definition: dpsdispmgr.h:136
const ColTab::Sequence & colSequence() const
Definition: dpsdispmgr.h:66
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
int dpscolid_
Definition: dpsdispmgr.h:95
MapperSetup setup_
Definition: coltabmapper.h:109
DataPointSetDisplayProp(const BufferStringSet &nms, const TypeSet< Color > &cols)
Definition: dpsdispmgr.h:46
TypeSet< Color > selgrpcols_
Definition: dpsdispmgr.h:92
bool showSelected() const
Definition: dpsdispmgr.h:63
int dpsColID() const
Definition: dpsdispmgr.h:62
Color is an RGB color object, with a transparancy. The storage is in a 4-byte integer, similar to Qt.
Definition: color.h:26
int DispID
Definition: dpsdispmgr.h:108
#define mClass(module)
Definition: commondefs.h:164
bool showsel_
Definition: dpsdispmgr.h:96
virtual DataPointSetDisplayProp * clone() const
Definition: dpsdispmgr.h:53
const ColTab::MapperSetup & colMapperSetUp() const
Definition: dpsdispmgr.h:67
static Color NoColor()
Definition: color.h:75
const TypeSet< int > & availableViewers() const
Definition: dpsdispmgr.h:125
ColTab::Sequence coltab_
Definition: dpsdispmgr.h:93
float position(float val) const
returns position in ColorTable