9 #ifndef CMZN_TESSELLATION_HPP__ 10 #define CMZN_TESSELLATION_HPP__ 12 #include "opencmiss/zinc/tessellation.h" 13 #include "opencmiss/zinc/context.hpp" 20 class Tessellationmodulenotifier;
33 cmzn_tessellation_id id;
41 explicit Tessellation(cmzn_tessellation_id in_tessellation_id) :
42 id(in_tessellation_id)
46 id(cmzn_tessellation_access(tessellation.id))
51 cmzn_tessellation_id temp_id = cmzn_tessellation_access(tessellation.id);
54 cmzn_tessellation_destroy(&
id);
64 cmzn_tessellation_destroy(&
id);
125 return cmzn_tessellation_is_managed(
id);
142 return cmzn_tessellation_set_managed(
id, value);
154 return cmzn_tessellation_get_circle_divisions(
id);
168 return cmzn_tessellation_set_circle_divisions(
id, circleDivisions);
179 return cmzn_tessellation_get_name(
id);
191 return cmzn_tessellation_set_name(
id, name);
209 return cmzn_tessellation_get_minimum_divisions(
id, valuesCount, valuesOut);
226 return cmzn_tessellation_set_minimum_divisions(
id, valuesCount, valuesIn);
244 return cmzn_tessellation_get_refinement_factors(
id, valuesCount, valuesOut);
266 return cmzn_tessellation_set_refinement_factors(
id, valuesCount, valuesIn);
288 cmzn_tessellationiterator_id id;
301 id(cmzn_tessellationiterator_access(tessellationiterator.id))
306 cmzn_tessellationiterator_id temp_id = cmzn_tessellationiterator_access(tessellationiterator.id);
309 cmzn_tessellationiterator_destroy(&
id);
319 cmzn_tessellationiterator_destroy(&
id);
343 return Tessellation(cmzn_tessellationiterator_next(
id));
357 cmzn_tessellationmodule_id id;
366 id(in_tessellationmodule_id)
370 id(cmzn_tessellationmodule_access(tessellationModule.id))
375 cmzn_tessellationmodule_id temp_id = cmzn_tessellationmodule_access(
376 tessellationModule.id);
379 cmzn_tessellationmodule_destroy(&
id);
389 cmzn_tessellationmodule_destroy(&
id);
408 cmzn_tessellationmodule_id
getId()
const 421 return Tessellation(cmzn_tessellationmodule_create_tessellation(
id));
449 return Tessellation(cmzn_tessellationmodule_find_tessellation_by_name(
id, name));
463 return cmzn_tessellationmodule_begin_change(
id);
477 return cmzn_tessellationmodule_end_change(
id);
490 return Tessellation(cmzn_tessellationmodule_get_default_tessellation(
id));
502 return cmzn_tessellationmodule_set_default_tessellation(
id, tessellation.
getId());
516 return Tessellation(cmzn_tessellationmodule_get_default_points_tessellation(
id));
528 return cmzn_tessellationmodule_set_default_points_tessellation(
id, tessellation.
getId());
540 return cmzn_tessellationmodule_read_description(this->
id, description);
551 return cmzn_tessellationmodule_write_description(this->
id);
573 cmzn_tessellationmoduleevent_id id;
582 id(in_tessellationmodule_event_id)
586 id(cmzn_tessellationmoduleevent_access(tessellationmoduleEvent.id))
591 cmzn_tessellationmoduleevent_id temp_id = cmzn_tessellationmoduleevent_access(tessellationmoduleEvent.id);
593 cmzn_tessellationmoduleevent_destroy(&
id);
602 cmzn_tessellationmoduleevent_destroy(&
id);
621 cmzn_tessellationmoduleevent_id
getId()
const 637 return cmzn_tessellationmoduleevent_get_tessellation_change_flags(
id, tessellation.
getId());
649 return cmzn_tessellationmoduleevent_get_summary_tessellation_change_flags(
id);
669 static void C_callback(cmzn_tessellationmoduleevent_id tessellationmoduleevent_id,
void *callbackVoid)
671 Tessellationmoduleevent tessellationmoduleevent(cmzn_tessellationmoduleevent_access(tessellationmoduleevent_id));
673 (*callback)(tessellationmoduleevent);
695 cmzn_tessellationmodulenotifier_id id;
704 id(in_tessellationmodulenotifier_id)
708 id(cmzn_tessellationmodulenotifier_access(tessellationmoduleNotifier.id))
713 cmzn_tessellationmodulenotifier_id temp_id = cmzn_tessellationmodulenotifier_access(tessellationmoduleNotifier.id);
716 cmzn_tessellationmodulenotifier_destroy(&
id);
726 cmzn_tessellationmodulenotifier_destroy(&
id);
745 cmzn_tessellationmodulenotifier_id
getId()
const 762 return cmzn_tessellationmodulenotifier_set_callback(
id, callback.C_callback, static_cast<void*>(&callback));
773 return cmzn_tessellationmodulenotifier_clear_callback(
id);
int endChange()
Definition: tessellation.hpp:475
cmzn_tessellation_id getId() const
Definition: tessellation.hpp:112
char * getName()
Definition: tessellation.hpp:177
bool isValid() const
Definition: tessellation.hpp:102
cmzn_tessellationmodulenotifier_id getId() const
Definition: tessellation.hpp:745
Definition: tessellation.hpp:80
ChangeFlag
Definition: tessellation.hpp:72
Manages individual user notification of changes with a tessellation module.
Definition: tessellation.hpp:692
Definition: tessellation.hpp:84
char * writeDescription()
Definition: tessellation.hpp:549
Tessellation getDefaultTessellation()
Definition: tessellation.hpp:488
int clearCallback()
Definition: tessellation.hpp:771
bool isValid() const
Definition: tessellation.hpp:735
Tessellation::ChangeFlags getTessellationChangeFlags(const Tessellation &tessellation) const
Definition: tessellation.hpp:635
cmzn_tessellationmoduleevent_id getId() const
Definition: tessellation.hpp:621
Tessellation next()
Definition: tessellation.hpp:341
Definition: tessellation.hpp:78
bool isManaged()
Definition: tessellation.hpp:123
int setCircleDivisions(int circleDivisions)
Definition: tessellation.hpp:166
int getMinimumDivisions(int valuesCount, int *valuesOut)
Definition: tessellation.hpp:207
cmzn_tessellationmodule_id getId() const
Definition: tessellation.hpp:408
Base class functor for tessellation module notifier callbacks.
Definition: tessellation.hpp:662
An iterator for looping through all the tessellations in a tessellation module.
Definition: tessellation.hpp:284
bool isValid() const
Definition: tessellation.hpp:398
int setMinimumDivisions(int valuesCount, const int *valuesIn)
Definition: tessellation.hpp:224
Tessellation createTessellation()
Definition: tessellation.hpp:419
int setCallback(Tessellationmodulecallback &callback)
Definition: tessellation.hpp:760
int beginChange()
Definition: tessellation.hpp:461
Tessellation findTessellationByName(const char *name)
Definition: tessellation.hpp:447
The tessellation controls the number of polygons or line segments.
Definition: tessellation.hpp:30
Definition: tessellation.hpp:76
Tessellation getDefaultPointsTessellation()
Definition: tessellation.hpp:514
int setRefinementFactors(int valuesCount, const int *valuesIn)
Definition: tessellation.hpp:264
int readDescription(const char *description)
Definition: tessellation.hpp:538
Tessellationiterator createTessellationiterator()
Definition: tessellation.hpp:436
Definition: tessellation.hpp:86
Module managing all tessellation objects.
Definition: tessellation.hpp:354
int ChangeFlags
Definition: tessellation.hpp:95
int getRefinementFactors(int valuesCount, int *valuesOut)
Definition: tessellation.hpp:242
int getCircleDivisions()
Definition: tessellation.hpp:152
The OpenCMISS namespace.
Definition: context.hpp:20
bool isValid() const
Definition: tessellation.hpp:611
Information about changes to tessellations in the tessellation module.
Definition: tessellation.hpp:570
int setDefaultPointsTessellation(const Tessellation &tessellation)
Definition: tessellation.hpp:526
Tessellationmodulenotifier createTessellationmodulenotifier()
Definition: tessellation.hpp:777
Definition: tessellation.hpp:82
bool isValid() const
Definition: tessellation.hpp:328
Tessellationmodule getTessellationmodule()
Definition: tessellation.hpp:783
Tessellation::ChangeFlags getSummaryTessellationChangeFlags() const
Definition: tessellation.hpp:647
int setManaged(bool value)
Definition: tessellation.hpp:140
int setDefaultTessellation(const Tessellation &tessellation)
Definition: tessellation.hpp:500
int setName(const char *name)
Definition: tessellation.hpp:189
Definition: tessellation.hpp:74