OpenCMISS-Zinc C++ API Documentation
spectrum.hpp
Go to the documentation of this file.
1 
4 /* OpenCMISS-Zinc Library
5 *
6 * This Source Code Form is subject to the terms of the Mozilla Public
7 * License, v. 2.0. If a copy of the MPL was not distributed with this
8 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
9 #ifndef CMZN_SPECTRUM_HPP__
10 #define CMZN_SPECTRUM_HPP__
11 
12 #include "opencmiss/zinc/spectrum.h"
13 #include "opencmiss/zinc/context.hpp"
14 
15 namespace OpenCMISS
16 {
17 namespace Zinc
18 {
19 class Scene;
20 class Scenefilter;
21 class Spectrummodulenotifier;
22 
32 {
33 protected:
34  cmzn_spectrumcomponent_id id;
35 
36 public:
37 
39  id(0)
40  {
41  }
42 
43  // takes ownership of C handle, responsibility for destroying it
44  explicit Spectrumcomponent(
45  cmzn_spectrumcomponent_id in_spectrumcomponent_id) :
46  id(in_spectrumcomponent_id)
47  {
48  }
49 
50  Spectrumcomponent(const Spectrumcomponent& spectrumComponent) :
51  id(cmzn_spectrumcomponent_access(spectrumComponent.id))
52  {
53  }
54 
55  Spectrumcomponent& operator=(const Spectrumcomponent& spectrumComponent)
56  {
57  cmzn_spectrumcomponent_id temp_id = cmzn_spectrumcomponent_access(
58  spectrumComponent.id);
59  if (0 != id)
60  {
61  cmzn_spectrumcomponent_destroy(&id);
62  }
63  id = temp_id;
64  return *this;
65  }
66 
68  {
69  if (0 != id)
70  {
71  cmzn_spectrumcomponent_destroy(&id);
72  }
73  }
74 
80  bool isValid() const
81  {
82  return (0 != id);
83  }
84 
88  enum ScaleType
89  {
90  SCALE_TYPE_INVALID = CMZN_SPECTRUMCOMPONENT_SCALE_TYPE_INVALID,
92  SCALE_TYPE_LINEAR = CMZN_SPECTRUMCOMPONENT_SCALE_TYPE_LINEAR,
98  SCALE_TYPE_LOG = CMZN_SPECTRUMCOMPONENT_SCALE_TYPE_LOG
103  };
104 
111  {
112  COLOUR_MAPPING_TYPE_INVALID = CMZN_SPECTRUMCOMPONENT_COLOUR_MAPPING_TYPE_INVALID,
114  COLOUR_MAPPING_TYPE_ALPHA = CMZN_SPECTRUMCOMPONENT_COLOUR_MAPPING_TYPE_ALPHA,
121  COLOUR_MAPPING_TYPE_BANDED = CMZN_SPECTRUMCOMPONENT_COLOUR_MAPPING_TYPE_BANDED,
130  COLOUR_MAPPING_TYPE_BLUE = CMZN_SPECTRUMCOMPONENT_COLOUR_MAPPING_TYPE_BLUE,
133  COLOUR_MAPPING_TYPE_GREEN = CMZN_SPECTRUMCOMPONENT_COLOUR_MAPPING_TYPE_GREEN,
136  COLOUR_MAPPING_TYPE_MONOCHROME = CMZN_SPECTRUMCOMPONENT_COLOUR_MAPPING_TYPE_MONOCHROME,
139  COLOUR_MAPPING_TYPE_RAINBOW = CMZN_SPECTRUMCOMPONENT_COLOUR_MAPPING_TYPE_RAINBOW,
145  COLOUR_MAPPING_TYPE_RED = CMZN_SPECTRUMCOMPONENT_COLOUR_MAPPING_TYPE_RED,
148  COLOUR_MAPPING_TYPE_STEP = CMZN_SPECTRUMCOMPONENT_COLOUR_MAPPING_TYPE_STEP,
153  COLOUR_MAPPING_TYPE_WHITE_TO_BLUE = CMZN_SPECTRUMCOMPONENT_COLOUR_MAPPING_TYPE_WHITE_TO_BLUE,
156  COLOUR_MAPPING_TYPE_WHITE_TO_RED = CMZN_SPECTRUMCOMPONENT_COLOUR_MAPPING_TYPE_WHITE_TO_RED,
159  COLOUR_MAPPING_TYPE_WHITE_TO_GREEN = CMZN_SPECTRUMCOMPONENT_COLOUR_MAPPING_TYPE_WHITE_TO_GREEN
162  };
163 
169  cmzn_spectrumcomponent_id getId() const
170  {
171  return id;
172  }
173 
182  {
183  return cmzn_spectrumcomponent_get_range_minimum(id);
184  }
185 
195  int setRangeMinimum(double value)
196  {
197  return cmzn_spectrumcomponent_set_range_minimum(id, value);
198  }
199 
208  {
209  return cmzn_spectrumcomponent_get_range_maximum(id);
210  }
211 
221  int setRangeMaximum(double value)
222  {
223  return cmzn_spectrumcomponent_set_range_maximum(id, value);
224  }
225 
233  {
234  return cmzn_spectrumcomponent_get_colour_minimum(id);
235  }
236 
253  int setColourMinimum(double value)
254  {
255  return cmzn_spectrumcomponent_set_colour_minimum(id,value);
256  }
257 
265  {
266  return cmzn_spectrumcomponent_get_colour_maximum(id);
267  }
268 
284  int setColourMaximum(double value)
285  {
286  return cmzn_spectrumcomponent_set_colour_maximum(id, value);
287  }
288 
297  double getStepValue()
298  {
299  return cmzn_spectrumcomponent_get_step_value(id);
300  }
301 
311  int setStepValue(double value)
312  {
313  return cmzn_spectrumcomponent_set_step_value(id, value);
314  }
315 
324  {
325  return cmzn_spectrumcomponent_get_exaggeration(id);
326  }
327 
336  int setExaggeration(double value)
337  {
338  return cmzn_spectrumcomponent_set_exaggeration(id, value);
339  }
340 
349  double getBandedRatio()
350  {
351  return cmzn_spectrumcomponent_get_banded_ratio(id);
352  }
353 
363  int setBandedRatio(double value)
364  {
365  return cmzn_spectrumcomponent_set_banded_ratio(id, value);
366  }
367 
375  bool isActive()
376  {
377  return cmzn_spectrumcomponent_is_active(id);
378  }
379 
388  int setActive(bool active)
389  {
390  return cmzn_spectrumcomponent_set_active(id, active);
391  }
392 
401  {
402  return cmzn_spectrumcomponent_is_colour_reverse(id);
403  }
404 
416  int setColourReverse(bool reverse)
417  {
418  return cmzn_spectrumcomponent_set_colour_reverse(id, reverse);
419  }
420 
430  {
431  return cmzn_spectrumcomponent_is_extend_above(id);
432  }
433 
445  int setExtendAbove(bool extend_above)
446  {
447  return cmzn_spectrumcomponent_set_extend_above(id, extend_above);
448  }
449 
459  {
460  return cmzn_spectrumcomponent_is_extend_below(id);
461  }
462 
474  int setExtendBelow(bool extend_below)
475  {
476  return cmzn_spectrumcomponent_set_extend_below(id, extend_below);
477  }
478 
489  {
490  return cmzn_spectrumcomponent_get_field_component(id);
491  }
492 
503  int setFieldComponent(int componentNumber)
504  {
505  return cmzn_spectrumcomponent_set_field_component(id,
506  componentNumber);
507  }
508 
516  {
517  return cmzn_spectrumcomponent_is_fix_maximum(id);
518  }
519 
531  int setFixMaximum(bool fixMaximum)
532  {
533  return cmzn_spectrumcomponent_set_fix_maximum(id, fixMaximum);
534  }
535 
543  {
544  return cmzn_spectrumcomponent_is_fix_minimum(id);
545  }
546 
558  int setFixMinimum(bool fixMinimum)
559  {
560  return cmzn_spectrumcomponent_set_fix_minimum(id, fixMinimum);
561  }
562 
572  {
573  return cmzn_spectrumcomponent_get_number_of_bands(id);
574  }
575 
585  int setNumberOfBands(int numberOfBands)
586  {
587  return cmzn_spectrumcomponent_set_number_of_bands(id, numberOfBands);
588  }
589 
599  {
600  return static_cast<ScaleType>(cmzn_spectrumcomponent_get_scale_type(
601  id));
602  }
603 
612  int setScaleType(ScaleType scaleType)
613  {
614  return cmzn_spectrumcomponent_set_scale_type(id,
615  static_cast<cmzn_spectrumcomponent_scale_type>(scaleType));
616  }
617 
627  {
628  return static_cast<ColourMappingType>(cmzn_spectrumcomponent_get_colour_mapping_type(
629  id));
630  }
631 
641  {
642  return cmzn_spectrumcomponent_set_colour_mapping_type(id,
643  static_cast<cmzn_spectrumcomponent_colour_mapping_type>(colourMapping));
644  }
645 
646 };
647 
656 class Spectrum
657 {
658 protected:
659  cmzn_spectrum_id id;
660 
661 public:
662 
663  Spectrum() :
664  id(0)
665  {
666  }
667 
668  // takes ownership of C handle, responsibility for destroying it
669  explicit Spectrum(cmzn_spectrum_id in_spectrum_id) :
670  id(in_spectrum_id)
671  {
672  }
673 
674  Spectrum(const Spectrum& spectrum) :
675  id(cmzn_spectrum_access(spectrum.id))
676  {
677  }
678 
679  Spectrum& operator=(const Spectrum& spectrum)
680  {
681  cmzn_spectrum_id temp_id = cmzn_spectrum_access(spectrum.id);
682  if (0 != id)
683  {
684  cmzn_spectrum_destroy(&id);
685  }
686  id = temp_id;
687  return *this;
688  }
689 
690  ~Spectrum()
691  {
692  if (0 != id)
693  {
694  cmzn_spectrum_destroy(&id);
695  }
696  }
697 
702  {
703  CHANGE_FLAG_NONE = CMZN_SPECTRUM_CHANGE_FLAG_NONE,
705  CHANGE_FLAG_ADD = CMZN_SPECTRUM_CHANGE_FLAG_ADD,
707  CHANGE_FLAG_REMOVE = CMZN_SPECTRUM_CHANGE_FLAG_REMOVE,
709  CHANGE_FLAG_IDENTIFIER = CMZN_SPECTRUM_CHANGE_FLAG_IDENTIFIER,
711  CHANGE_FLAG_DEFINITION = CMZN_SPECTRUM_CHANGE_FLAG_DEFINITION,
713  CHANGE_FLAG_FULL_RESULT = CMZN_SPECTRUM_CHANGE_FLAG_FULL_RESULT,
715  CHANGE_FLAG_FINAL = CMZN_SPECTRUM_CHANGE_FLAG_FINAL
718  };
719 
724  typedef int ChangeFlags;
725 
731  bool isValid() const
732  {
733  return (0 != id);
734  }
735 
741  cmzn_spectrum_id getId() const
742  {
743  return id;
744  }
745 
752  bool isManaged()
753  {
754  return cmzn_spectrum_is_managed(id);
755  }
756 
766  int setManaged(bool value)
767  {
768  return cmzn_spectrum_set_managed(id, value);
769  }
770 
781  {
782  return cmzn_spectrum_begin_change(id);
783  }
784 
793  int endChange()
794  {
795  return cmzn_spectrum_end_change(id);
796  }
797 
804  char *getName()
805  {
806  return cmzn_spectrum_get_name(id);
807  }
808 
816  int setName(const char *name)
817  {
818  return cmzn_spectrum_set_name(id, name);
819  }
820 
827  {
828  return cmzn_spectrum_get_number_of_spectrumcomponents(id);
829  }
830 
837  {
838  return Spectrumcomponent(cmzn_spectrum_create_spectrumcomponent(id));
839  }
840 
847  {
848  return Spectrumcomponent(cmzn_spectrum_get_first_spectrumcomponent(id));
849  }
850 
858  {
859  return Spectrumcomponent(
860  cmzn_spectrum_get_next_spectrumcomponent(id, refComponent.getId()));
861  }
862 
870  {
871  return Spectrumcomponent(
872  cmzn_spectrum_get_previous_spectrumcomponent(id, refComponent.getId()));
873  }
874 
885  const Spectrumcomponent& refComponent)
886  {
887  return cmzn_spectrum_move_spectrumcomponent_before(id, component.getId(),
888  refComponent.getId());
889  }
890 
902  {
903  return cmzn_spectrum_remove_spectrumcomponent(id, component.getId());
904  }
905 
914  {
915  return cmzn_spectrum_remove_all_spectrumcomponents(id);
916  }
917 
928  {
929  return cmzn_spectrum_is_material_overwrite(id);
930  }
931 
938  int setMaterialOverwrite(bool overwrite)
939  {
940  return cmzn_spectrum_set_material_overwrite(id, overwrite);
941  }
942 
953  inline int autorange(const Scene &scene, const Scenefilter &scenefilter);
954 
955 };
956 
957 inline bool operator==(const Spectrum& a, const Spectrum& b)
958 {
959  return a.getId() == b.getId();
960 }
961 
970 {
971 private:
972 
973  cmzn_spectrumiterator_id id;
974 
975 public:
976 
977  Spectrumiterator() : id(0)
978  { }
979 
980  // takes ownership of C handle, responsibility for destroying it
981  explicit Spectrumiterator(cmzn_spectrumiterator_id iterator_id) :
982  id(iterator_id)
983  { }
984 
985  Spectrumiterator(const Spectrumiterator& spectrumiterator) :
986  id(cmzn_spectrumiterator_access(spectrumiterator.id))
987  { }
988 
989  Spectrumiterator& operator=(const Spectrumiterator& spectrumiterator)
990  {
991  cmzn_spectrumiterator_id temp_id = cmzn_spectrumiterator_access(spectrumiterator.id);
992  if (0 != id)
993  {
994  cmzn_spectrumiterator_destroy(&id);
995  }
996  id = temp_id;
997  return *this;
998  }
999 
1000  ~Spectrumiterator()
1001  {
1002  if (0 != id)
1003  {
1004  cmzn_spectrumiterator_destroy(&id);
1005  }
1006  }
1007 
1013  bool isValid() const
1014  {
1015  return (0 != id);
1016  }
1017 
1027  {
1028  return Spectrum(cmzn_spectrumiterator_next(id));
1029  }
1030 };
1031 
1038 {
1039 protected:
1040  cmzn_spectrummodule_id id;
1041 
1042 public:
1043 
1044  Spectrummodule() :
1045  id(0)
1046  {
1047  }
1048 
1049  // takes ownership of C handle, responsibility for destroying it
1050  explicit Spectrummodule(cmzn_spectrummodule_id in_spectrummodule_id) :
1051  id(in_spectrummodule_id)
1052  {
1053  }
1054 
1055  Spectrummodule(const Spectrummodule& spectrummodule) :
1056  id(cmzn_spectrummodule_access(spectrummodule.id))
1057  {
1058  }
1059 
1060  Spectrummodule& operator=(const Spectrummodule& spectrummodule)
1061  {
1062  cmzn_spectrummodule_id temp_id = cmzn_spectrummodule_access(
1063  spectrummodule.id);
1064  if (0 != id)
1065  {
1066  cmzn_spectrummodule_destroy(&id);
1067  }
1068  id = temp_id;
1069  return *this;
1070  }
1071 
1072  ~Spectrummodule()
1073  {
1074  if (0 != id)
1075  {
1076  cmzn_spectrummodule_destroy(&id);
1077  }
1078  }
1079 
1085  bool isValid() const
1086  {
1087  return (0 != id);
1088  }
1089 
1095  cmzn_spectrummodule_id getId() const
1096  {
1097  return id;
1098  }
1099 
1107  {
1108  return Spectrum(cmzn_spectrummodule_create_spectrum(id));
1109  }
1110 
1124  {
1125  return Spectrumiterator(cmzn_spectrummodule_create_spectrumiterator(id));
1126  }
1127 
1134  Spectrum findSpectrumByName(const char *name)
1135  {
1136  return Spectrum(cmzn_spectrummodule_find_spectrum_by_name(id, name));
1137  }
1138 
1149  {
1150  return cmzn_spectrummodule_begin_change(id);
1151  }
1152 
1163  {
1164  return cmzn_spectrummodule_end_change(id);
1165  }
1166 
1176  {
1177  return Spectrum(cmzn_spectrummodule_get_default_spectrum(id));
1178  }
1179 
1186  int setDefaultSpectrum(const Spectrum& spectrum)
1187  {
1188  return cmzn_spectrummodule_set_default_spectrum(id, spectrum.getId());
1189  }
1190 
1198  int readDescription(const char *description)
1199  {
1200  return cmzn_spectrummodule_read_description(this->id, description);
1201  }
1202 
1210  {
1211  return cmzn_spectrummodule_write_description(this->id);
1212  }
1213 
1220  inline Spectrummodulenotifier createSpectrummodulenotifier();
1221 
1222 };
1223 
1231 {
1232 protected:
1233  cmzn_spectrummoduleevent_id id;
1234 
1235 public:
1236 
1237  Spectrummoduleevent() : id(0)
1238  { }
1239 
1240  // takes ownership of C handle, responsibility for destroying it
1241  explicit Spectrummoduleevent(cmzn_spectrummoduleevent_id in_spectrummodule_event_id) :
1242  id(in_spectrummodule_event_id)
1243  { }
1244 
1245  Spectrummoduleevent(const Spectrummoduleevent& spectrummoduleEvent) :
1246  id(cmzn_spectrummoduleevent_access(spectrummoduleEvent.id))
1247  { }
1248 
1249  Spectrummoduleevent& operator=(const Spectrummoduleevent& spectrummoduleEvent)
1250  {
1251  cmzn_spectrummoduleevent_id temp_id = cmzn_spectrummoduleevent_access(spectrummoduleEvent.id);
1252  if (0 != id)
1253  cmzn_spectrummoduleevent_destroy(&id);
1254  id = temp_id;
1255  return *this;
1256  }
1257 
1259  {
1260  if (0 != id)
1261  {
1262  cmzn_spectrummoduleevent_destroy(&id);
1263  }
1264  }
1265 
1271  bool isValid() const
1272  {
1273  return (0 != id);
1274  }
1275 
1281  cmzn_spectrummoduleevent_id getId() const
1282  {
1283  return id;
1284  }
1285 
1296  {
1297  return cmzn_spectrummoduleevent_get_spectrum_change_flags(id, spectrum.getId());
1298  }
1299 
1308  {
1309  return cmzn_spectrummoduleevent_get_summary_spectrum_change_flags(id);
1310  }
1311 
1312 };
1313 
1323 {
1324 friend class Spectrummodulenotifier;
1325 private:
1326  Spectrummodulecallback(const Spectrummodulecallback&); // not implemented
1327  Spectrummodulecallback& operator=(const Spectrummodulecallback&); // not implemented
1328 
1329  static void C_callback(cmzn_spectrummoduleevent_id spectrummoduleevent_id, void *callbackVoid)
1330  {
1331  Spectrummoduleevent spectrummoduleevent(cmzn_spectrummoduleevent_access(spectrummoduleevent_id));
1332  Spectrummodulecallback *callback = reinterpret_cast<Spectrummodulecallback *>(callbackVoid);
1333  (*callback)(spectrummoduleevent);
1334  }
1335 
1336  virtual void operator()(const Spectrummoduleevent &spectrummoduleevent) = 0;
1337 
1338 protected:
1340  { }
1341 
1342 public:
1343  virtual ~Spectrummodulecallback()
1344  { }
1345 };
1346 
1353 {
1354 protected:
1355  cmzn_spectrummodulenotifier_id id;
1356 
1357 public:
1358 
1359  Spectrummodulenotifier() : id(0)
1360  { }
1361 
1362  // takes ownership of C handle, responsibility for destroying it
1363  explicit Spectrummodulenotifier(cmzn_spectrummodulenotifier_id in_spectrummodulenotifier_id) :
1364  id(in_spectrummodulenotifier_id)
1365  { }
1366 
1367  Spectrummodulenotifier(const Spectrummodulenotifier& spectrummoduleNotifier) :
1368  id(cmzn_spectrummodulenotifier_access(spectrummoduleNotifier.id))
1369  { }
1370 
1371  Spectrummodulenotifier& operator=(const Spectrummodulenotifier& spectrummoduleNotifier)
1372  {
1373  cmzn_spectrummodulenotifier_id temp_id = cmzn_spectrummodulenotifier_access(spectrummoduleNotifier.id);
1374  if (0 != id)
1375  {
1376  cmzn_spectrummodulenotifier_destroy(&id);
1377  }
1378  id = temp_id;
1379  return *this;
1380  }
1381 
1383  {
1384  if (0 != id)
1385  {
1386  cmzn_spectrummodulenotifier_destroy(&id);
1387  }
1388  }
1389 
1395  bool isValid() const
1396  {
1397  return (0 != id);
1398  }
1399 
1405  cmzn_spectrummodulenotifier_id getId() const
1406  {
1407  return id;
1408  }
1409 
1421  {
1422  return cmzn_spectrummodulenotifier_set_callback(id, callback.C_callback, static_cast<void*>(&callback));
1423  }
1424 
1432  {
1433  return cmzn_spectrummodulenotifier_clear_callback(id);
1434  }
1435 };
1436 
1438 {
1439  return Spectrummodulenotifier(cmzn_spectrummodule_create_spectrummodulenotifier(id));
1440 }
1441 
1443 {
1444  return Spectrummodule(cmzn_context_get_spectrummodule(id));
1445 }
1446 
1447 } // namespace Zinc
1448 }
1449 
1450 #endif
Maps a single component of a data field to colour in a spectrum.
Definition: spectrum.hpp:31
bool isFixMaximum()
Definition: spectrum.hpp:515
int setFieldComponent(int componentNumber)
Definition: spectrum.hpp:503
Spectrumiterator createSpectrumiterator()
Definition: spectrum.hpp:1123
bool isExtendBelow()
Definition: spectrum.hpp:458
Spectrumcomponent getNextSpectrumcomponent(const Spectrumcomponent &refComponent)
Definition: spectrum.hpp:857
int setColourReverse(bool reverse)
Definition: spectrum.hpp:416
int setRangeMinimum(double value)
Definition: spectrum.hpp:195
Spectrum findSpectrumByName(const char *name)
Definition: spectrum.hpp:1134
int setColourMinimum(double value)
Definition: spectrum.hpp:253
double getRangeMinimum()
Definition: spectrum.hpp:181
int getNumberOfBands()
Definition: spectrum.hpp:571
int readDescription(const char *description)
Definition: spectrum.hpp:1198
char * writeDescription()
Definition: spectrum.hpp:1209
bool isFixMinimum()
Definition: spectrum.hpp:542
ColourMappingType
Definition: spectrum.hpp:110
int getNumberOfSpectrumcomponents()
Definition: spectrum.hpp:826
int setScaleType(ScaleType scaleType)
Definition: spectrum.hpp:612
Spectrumcomponent createSpectrumcomponent()
Definition: spectrum.hpp:836
cmzn_spectrummodulenotifier_id getId() const
Definition: spectrum.hpp:1405
Container/manager for graphics visualising a region.
Definition: scene.hpp:38
int beginChange()
Definition: spectrum.hpp:1148
Spectrumcomponent getFirstSpectrumcomponent()
Definition: spectrum.hpp:846
ScaleType
Definition: spectrum.hpp:88
Spectrumcomponent getPreviousSpectrumcomponent(const Spectrumcomponent &refComponent)
Definition: spectrum.hpp:869
int endChange()
Definition: spectrum.hpp:1162
Spectrum::ChangeFlags getSummarySpectrumChangeFlags() const
Definition: spectrum.hpp:1307
double getColourMinimum()
Definition: spectrum.hpp:232
Manages individual user notification of changes with a spectrum module.
Definition: spectrum.hpp:1352
Base class functor for spectrum module notifier callbacks.
Definition: spectrum.hpp:1322
bool isValid() const
Definition: spectrum.hpp:1395
int setExtendAbove(bool extend_above)
Definition: spectrum.hpp:445
int ChangeFlags
Definition: spectrum.hpp:724
int setColourMaximum(double value)
Definition: spectrum.hpp:284
cmzn_spectrum_id getId() const
Definition: spectrum.hpp:741
Spectrum getDefaultSpectrum()
Definition: spectrum.hpp:1175
int setExtendBelow(bool extend_below)
Definition: spectrum.hpp:474
int removeAllSpectrumcomponents()
Definition: spectrum.hpp:913
Spectrum createSpectrum()
Definition: spectrum.hpp:1106
int beginChange()
Definition: spectrum.hpp:780
bool isMaterialOverwrite()
Definition: spectrum.hpp:927
Spectrum next()
Definition: spectrum.hpp:1026
ColourMappingType getColourMappingType()
Definition: spectrum.hpp:626
ChangeFlag
Definition: spectrum.hpp:701
double getRangeMaximum()
Definition: spectrum.hpp:207
int setMaterialOverwrite(bool overwrite)
Definition: spectrum.hpp:938
Information about changes to spectrums in the spectrum module.
Definition: spectrum.hpp:1230
cmzn_spectrumcomponent_id getId() const
Definition: spectrum.hpp:169
double getColourMaximum()
Definition: spectrum.hpp:264
int setExaggeration(double value)
Definition: spectrum.hpp:336
int setNumberOfBands(int numberOfBands)
Definition: spectrum.hpp:585
int setManaged(bool value)
Definition: spectrum.hpp:766
bool isValid() const
Definition: spectrum.hpp:1013
int endChange()
Definition: spectrum.hpp:793
Module managing all spectrums.
Definition: spectrum.hpp:1037
int setActive(bool active)
Definition: spectrum.hpp:388
int setFixMaximum(bool fixMaximum)
Definition: spectrum.hpp:531
Zinc Spectrum maps values of graphics data fields to colours.
Definition: spectrum.hpp:656
char * getName()
Definition: spectrum.hpp:804
int clearCallback()
Definition: spectrum.hpp:1431
An iterator for looping through all the spectrums in a spectrum module.
Definition: spectrum.hpp:969
int getFieldComponent()
Definition: spectrum.hpp:488
ScaleType getScaleType()
Definition: spectrum.hpp:598
bool isValid() const
Definition: spectrum.hpp:1085
int setName(const char *name)
Definition: spectrum.hpp:816
int removeSpectrumcomponent(const Spectrumcomponent &component)
Definition: spectrum.hpp:901
cmzn_spectrummoduleevent_id getId() const
Definition: spectrum.hpp:1281
bool isExtendAbove()
Definition: spectrum.hpp:429
double getStepValue()
Definition: spectrum.hpp:297
int moveSpectrumcomponentBefore(const Spectrumcomponent &component, const Spectrumcomponent &refComponent)
Definition: spectrum.hpp:884
int setColourMappingType(ColourMappingType colourMapping)
Definition: spectrum.hpp:640
int setStepValue(double value)
Definition: spectrum.hpp:311
bool isValid() const
Definition: spectrum.hpp:80
bool isValid() const
Definition: spectrum.hpp:731
bool isColourReverse()
Definition: spectrum.hpp:400
Spectrummodulenotifier createSpectrummodulenotifier()
Definition: spectrum.hpp:1437
The OpenCMISS namespace.
Definition: context.hpp:20
Scene filters determines which graphics are drawn.
Definition: scenefilter.hpp:33
double getExaggeration()
Definition: spectrum.hpp:323
Spectrummodule getSpectrummodule()
Definition: spectrum.hpp:1442
Spectrum::ChangeFlags getSpectrumChangeFlags(const Spectrum &spectrum) const
Definition: spectrum.hpp:1295
int setDefaultSpectrum(const Spectrum &spectrum)
Definition: spectrum.hpp:1186
double getBandedRatio()
Definition: spectrum.hpp:349
int setBandedRatio(double value)
Definition: spectrum.hpp:363
cmzn_spectrummodule_id getId() const
Definition: spectrum.hpp:1095
int setRangeMaximum(double value)
Definition: spectrum.hpp:221
bool isManaged()
Definition: spectrum.hpp:752
int setFixMinimum(bool fixMinimum)
Definition: spectrum.hpp:558
int setCallback(Spectrummodulecallback &callback)
Definition: spectrum.hpp:1420
bool isActive()
Definition: spectrum.hpp:375
bool isValid() const
Definition: spectrum.hpp:1271