9 #ifndef CMZN_SCENEFILTER_HPP__ 10 #define CMZN_SCENEFILTER_HPP__ 12 #include "opencmiss/zinc/scenefilter.h" 13 #include "opencmiss/zinc/context.hpp" 14 #include "opencmiss/zinc/graphics.hpp" 15 #include "opencmiss/zinc/region.hpp" 22 class ScenefilterOperator;
36 cmzn_scenefilter_id id;
44 explicit Scenefilter(cmzn_scenefilter_id in_filter_id) :
49 id(cmzn_scenefilter_access(scenefilter.id))
54 cmzn_scenefilter_id temp_id = cmzn_scenefilter_access(scenefilter.id);
57 cmzn_scenefilter_destroy(&
id);
67 cmzn_scenefilter_destroy(&
id);
86 cmzn_scenefilter_id
getId()
const 99 return cmzn_scenefilter_is_managed(
id);
116 return cmzn_scenefilter_set_managed(
id, value);
128 return cmzn_scenefilter_evaluate_graphics(
id, graphics.
getId());
138 return cmzn_scenefilter_is_inverse(
id);
150 return cmzn_scenefilter_set_inverse(
id, value);
161 return cmzn_scenefilter_get_name(
id);
172 return cmzn_scenefilter_set_name(
id, name);
207 Scenefilter(reinterpret_cast<cmzn_scenefilter_id>(operator_filter_id))
217 return reinterpret_cast<cmzn_scenefilter_operator_id
>(id);
230 return cmzn_scenefilter_operator_append_operand(getDerivedId(), operand.
getId());
239 return Scenefilter(cmzn_scenefilter_operator_get_first_operand(getDerivedId()));
251 return Scenefilter(cmzn_scenefilter_operator_get_next_operand(getDerivedId(), refOperand.
getId()));
262 return cmzn_scenefilter_operator_is_operand_active(getDerivedId(), operand.
getId());
274 return cmzn_scenefilter_operator_set_operand_active(getDerivedId(), operand.
getId(), isActive);
288 return cmzn_scenefilter_operator_insert_operand_before(getDerivedId(), operand.
getId(), refOperand.
getId());
299 return cmzn_scenefilter_operator_remove_operand(getDerivedId(), operand.
getId());
316 cmzn_scenefiltermodule_id id;
325 id(in_filtermodule_id)
329 id(cmzn_scenefiltermodule_access(scenefiltermodule.id))
334 cmzn_scenefiltermodule_id temp_id = cmzn_scenefiltermodule_access(
335 scenefiltermodule.id);
338 cmzn_scenefiltermodule_destroy(&
id);
348 cmzn_scenefiltermodule_destroy(&
id);
367 cmzn_scenefiltermodule_id
getId()
const 381 return Scenefilter(cmzn_scenefiltermodule_create_scenefilter_visibility_flags(
id));
393 return Scenefilter(cmzn_scenefiltermodule_create_scenefilter_field_domain_type(
id,
394 static_cast<cmzn_field_domain_type>(domainType)));
405 return Scenefilter(cmzn_scenefiltermodule_create_scenefilter_graphics_name(
id, matchName));
416 return Scenefilter(cmzn_scenefiltermodule_create_scenefilter_graphics_type(
id,
417 static_cast<cmzn_graphics_type>(graphicsType)));
429 return Scenefilter(cmzn_scenefiltermodule_create_scenefilter_region(
430 id, matchRegion.
getId()));
442 cmzn_scenefiltermodule_create_scenefilter_operator_and(
id)));
454 cmzn_scenefiltermodule_create_scenefilter_operator_or(
id)));
465 return Scenefilter(cmzn_scenefiltermodule_find_scenefilter_by_name(
id, name));
479 return cmzn_scenefiltermodule_begin_change(
id);
493 return cmzn_scenefiltermodule_end_change(
id);
503 return Scenefilter(cmzn_scenefiltermodule_get_default_scenefilter(
id));
514 return cmzn_scenefiltermodule_set_default_scenefilter(
id, filter.
getId());
Scenefilter createScenefilterRegion(const Region &matchRegion)
Definition: scenefilter.hpp:427
cmzn_scenefilter_id getId() const
Definition: scenefilter.hpp:86
Scenefilter getFirstOperand()
Definition: scenefilter.hpp:237
int setDefaultScenefilter(const Scenefilter &filter)
Definition: scenefilter.hpp:512
Scenefilter findScenefilterByName(const char *name)
Definition: scenefilter.hpp:463
int endChange()
Definition: scenefilter.hpp:491
Scenefilter createScenefilterFieldDomainType(Field::DomainType domainType)
Definition: scenefilter.hpp:391
bool isValid() const
Definition: scenefilter.hpp:357
int insertOperandBefore(const Scenefilter &operand, const Scenefilter &refOperand)
Definition: scenefilter.hpp:286
bool isValid() const
Definition: scenefilter.hpp:76
cmzn_scenefilter_operator_id getDerivedId()
Definition: scenefilter.hpp:215
A hierarchical block/namespace owning domains and fields.
Definition: region.hpp:33
Base graphics type: produces 3-D graphics visualising domains and fields.
Definition: graphics.hpp:45
cmzn_region_id getId() const
Definition: region.hpp:84
Module managing all scene filters.
Definition: scenefilter.hpp:313
An operator OR or AND specific scene filter type.
Definition: scenefilter.hpp:198
int removeOperand(const Scenefilter &operand)
Definition: scenefilter.hpp:297
Scenefilter createScenefilterGraphicsName(const char *matchName)
Definition: scenefilter.hpp:403
Scenefilter getDefaultScenefilter()
Definition: scenefilter.hpp:501
int setName(const char *name)
Definition: scenefilter.hpp:170
bool isManaged()
Definition: scenefilter.hpp:97
DomainType
Definition: field.hpp:210
ScenefilterOperator createScenefilterOperatorAnd()
Definition: scenefilter.hpp:439
Scenefilter getNextOperand(const Scenefilter &refOperand)
Definition: scenefilter.hpp:249
Scenefilter createScenefilterVisibilityFlags()
Definition: scenefilter.hpp:379
ScenefilterOperator castOperator()
Definition: scenefilter.hpp:303
int setOperandActive(const Scenefilter &operand, bool isActive)
Definition: scenefilter.hpp:272
Scenefiltermodule getScenefiltermodule()
Definition: scenefilter.hpp:518
int appendOperand(const Scenefilter &operand)
Definition: scenefilter.hpp:228
int setManaged(bool value)
Definition: scenefilter.hpp:114
bool isInverse()
Definition: scenefilter.hpp:136
int setInverse(bool value)
Definition: scenefilter.hpp:148
Type
Definition: graphics.hpp:131
The OpenCMISS namespace.
Definition: context.hpp:20
Scene filters determines which graphics are drawn.
Definition: scenefilter.hpp:33
cmzn_scenefiltermodule_id getId() const
Definition: scenefilter.hpp:367
Scenefilter createScenefilterGraphicsType(Graphics::Type graphicsType)
Definition: scenefilter.hpp:414
bool evaluateGraphics(const Graphics &graphics)
Definition: scenefilter.hpp:126
char * getName()
Definition: scenefilter.hpp:159
bool isOperandActive(const Scenefilter &operand)
Definition: scenefilter.hpp:260
cmzn_graphics_id getId() const
Definition: graphics.hpp:153
int beginChange()
Definition: scenefilter.hpp:477
ScenefilterOperator createScenefilterOperatorOr()
Definition: scenefilter.hpp:451