9 #ifndef CMZN_TESSELLATION_HPP__
10 #define CMZN_TESSELLATION_HPP__
12 #include "zinc/tessellation.h"
13 #include "zinc/context.hpp"
31 cmzn_tessellation_id id;
39 explicit Tessellation(cmzn_tessellation_id in_tessellation_id) :
40 id(in_tessellation_id)
44 id(cmzn_tessellation_access(tessellation.id))
49 cmzn_tessellation_id temp_id = cmzn_tessellation_access(tessellation.id);
52 cmzn_tessellation_destroy(&
id);
62 cmzn_tessellation_destroy(&
id);
81 cmzn_tessellation_id
getId()
const
94 return cmzn_tessellation_is_managed(
id);
111 return cmzn_tessellation_set_managed(
id, value);
123 return cmzn_tessellation_get_circle_divisions(
id);
137 return cmzn_tessellation_set_circle_divisions(
id, circleDivisions);
148 return cmzn_tessellation_get_name(
id);
160 return cmzn_tessellation_set_name(
id, name);
178 return cmzn_tessellation_get_minimum_divisions(
id, valuesCount, valuesOut);
195 return cmzn_tessellation_set_minimum_divisions(
id, valuesCount, valuesIn);
213 return cmzn_tessellation_get_refinement_factors(
id, valuesCount, valuesOut);
235 return cmzn_tessellation_set_refinement_factors(
id, valuesCount, valuesIn);
240 inline bool operator==(
const Tessellation& a,
const Tessellation& b)
242 return a.getId() == b.getId();
257 cmzn_tessellationiterator_id id;
270 id(cmzn_tessellationiterator_access(tessellationiterator.id))
275 cmzn_tessellationiterator_id temp_id = cmzn_tessellationiterator_access(tessellationiterator.id);
278 cmzn_tessellationiterator_destroy(&
id);
288 cmzn_tessellationiterator_destroy(&
id);
312 return Tessellation(cmzn_tessellationiterator_next(
id));
326 cmzn_tessellationmodule_id id;
335 id(in_tessellationmodule_id)
339 id(cmzn_tessellationmodule_access(tessellationModule.id))
344 cmzn_tessellationmodule_id temp_id = cmzn_tessellationmodule_access(
345 tessellationModule.id);
348 cmzn_tessellationmodule_destroy(&
id);
358 cmzn_tessellationmodule_destroy(&
id);
377 cmzn_tessellationmodule_id
getId()
const
390 return Tessellation(cmzn_tessellationmodule_create_tessellation(
id));
418 return Tessellation(cmzn_tessellationmodule_find_tessellation_by_name(
id, name));
432 return cmzn_tessellationmodule_begin_change(
id);
446 return cmzn_tessellationmodule_end_change(
id);
459 return Tessellation(cmzn_tessellationmodule_get_default_tessellation(
id));
471 return cmzn_tessellationmodule_set_default_tessellation(
id, tessellation.
getId());
485 return Tessellation(cmzn_tessellationmodule_get_default_points_tessellation(
id));
497 return cmzn_tessellationmodule_set_default_points_tessellation(
id, tessellation.
getId());
int endChange()
Definition: tessellation.hpp:444
cmzn_tessellation_id getId() const
Definition: tessellation.hpp:81
char * getName()
Definition: tessellation.hpp:146
bool isValid() const
Definition: tessellation.hpp:71
Tessellation getDefaultTessellation()
Definition: tessellation.hpp:457
Tessellation next()
Definition: tessellation.hpp:310
bool isManaged()
Definition: tessellation.hpp:92
int setCircleDivisions(int circleDivisions)
Definition: tessellation.hpp:135
int getMinimumDivisions(int valuesCount, int *valuesOut)
Definition: tessellation.hpp:176
cmzn_tessellationmodule_id getId() const
Definition: tessellation.hpp:377
An iterator for looping through all the tessellations in a tessellation module.
Definition: tessellation.hpp:253
bool isValid() const
Definition: tessellation.hpp:367
int setMinimumDivisions(int valuesCount, const int *valuesIn)
Definition: tessellation.hpp:193
Tessellation createTessellation()
Definition: tessellation.hpp:388
int beginChange()
Definition: tessellation.hpp:430
Tessellation findTessellationByName(const char *name)
Definition: tessellation.hpp:416
The tessellation controls the number of polygons or line segments.
Definition: tessellation.hpp:28
Tessellation getDefaultPointsTessellation()
Definition: tessellation.hpp:483
int setRefinementFactors(int valuesCount, const int *valuesIn)
Definition: tessellation.hpp:233
Tessellationiterator createTessellationiterator()
Definition: tessellation.hpp:405
Module managing all tessellation objects.
Definition: tessellation.hpp:323
int getRefinementFactors(int valuesCount, int *valuesOut)
Definition: tessellation.hpp:211
int getCircleDivisions()
Definition: tessellation.hpp:121
int setDefaultPointsTessellation(const Tessellation &tessellation)
Definition: tessellation.hpp:495
bool isValid() const
Definition: tessellation.hpp:297
Tessellationmodule getTessellationmodule()
Definition: tessellation.hpp:501
int setManaged(bool value)
Definition: tessellation.hpp:109
int setDefaultTessellation(const Tessellation &tessellation)
Definition: tessellation.hpp:469
int setName(const char *name)
Definition: tessellation.hpp:158