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);
250 cmzn_tessellationmodule_id id;
259 id(in_tessellationmodule_id)
263 id(cmzn_tessellationmodule_access(tessellationModule.id))
268 cmzn_tessellationmodule_id temp_id = cmzn_tessellationmodule_access(
269 tessellationModule.id);
272 cmzn_tessellationmodule_destroy(&
id);
282 cmzn_tessellationmodule_destroy(&
id);
301 cmzn_tessellationmodule_id
getId()
const
314 return Tessellation(cmzn_tessellationmodule_create_tessellation(
id));
325 return Tessellation(cmzn_tessellationmodule_find_tessellation_by_name(
id, name));
339 return cmzn_tessellationmodule_begin_change(
id);
353 return cmzn_tessellationmodule_end_change(
id);
366 return Tessellation(cmzn_tessellationmodule_get_default_tessellation(
id));
378 return cmzn_tessellationmodule_set_default_tessellation(
id, tessellation.
getId());
392 return Tessellation(cmzn_tessellationmodule_get_default_points_tessellation(
id));
404 return cmzn_tessellationmodule_set_default_points_tessellation(
id, tessellation.
getId());
int endChange()
Definition: tessellation.hpp:351
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:364
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:301
bool isValid() const
Definition: tessellation.hpp:291
int setMinimumDivisions(int valuesCount, const int *valuesIn)
Definition: tessellation.hpp:193
Tessellation createTessellation()
Definition: tessellation.hpp:312
int beginChange()
Definition: tessellation.hpp:337
Tessellation findTessellationByName(const char *name)
Definition: tessellation.hpp:323
The tessellation controls the number of polygons or line segments.
Definition: tessellation.hpp:28
Tessellation getDefaultPointsTessellation()
Definition: tessellation.hpp:390
int setRefinementFactors(int valuesCount, const int *valuesIn)
Definition: tessellation.hpp:233
Module managing all tessellation objects.
Definition: tessellation.hpp:247
int getRefinementFactors(int valuesCount, int *valuesOut)
Definition: tessellation.hpp:211
int getCircleDivisions()
Definition: tessellation.hpp:121
int setDefaultPointsTessellation(const Tessellation &tessellation)
Definition: tessellation.hpp:402
Tessellationmodule getTessellationmodule()
Definition: tessellation.hpp:408
int setManaged(bool value)
Definition: tessellation.hpp:109
int setDefaultTessellation(const Tessellation &tessellation)
Definition: tessellation.hpp:376
int setName(const char *name)
Definition: tessellation.hpp:158