Contexts are similar to folders and allows to store and organize project objects.
More...
|
const unsigned int & | get_dependency_count () const override |
|
void | update_dep_index (const CoreListId &id, const unsigned int &new_index) override |
|
void | remove_dep (const CoreListId &id) override |
|
CoreListId | add_dep (OfAttr *attr, const int &type, const unsigned int &index) override |
|
CoreListId | get_first_dependency () const override |
|
CoreListId | get_next_dependency (const CoreListId &dep_id) const override |
|
OfAttr * | get_dependency_attr (const CoreListId &dep_id) const override |
|
const unsigned int | get_dependency_attr_value_index (const CoreListId &dep_id) const override |
|
bool | is_kindof (const CoreString &class_name) const override |
|
bool | is_cyclic_reference (const OfAttr *attr) const override |
|
bool | is_traversal () const override |
|
const CoreString & | get_full_name () const override |
| return the full name (the full path from the root) of this context
|
|
void | rename (const CoreString &name) override |
| change the name of this context
|
|
void | propagate_rename_event (const CoreString &old_name) |
|
OfContext * | get_parent () const |
| return the parent context of this context
|
|
bool | is_creation_context (const OfObject &object) const |
| return true if this context is the context in which the given object has been created
|
|
bool | is_child_of (const OfContext &context, const bool &follow_instances=false) const |
| return true if this context is a child (or grandchild...) of the given context
|
|
bool | is_root () const |
| return true if this context is the factory's root context
|
|
void | set_parent (OfContext &parent) |
| move this context inside the specified context
|
|
OfContext * | get_source () const |
| return the instancing source of this context
|
|
const OfContext * | get_scene_assembly_source_context () const |
| return the first context from which this context was created from in the scene assembly
|
|
OfContext * | get_scene_assembly_source_context () |
|
bool | is_instance () const override |
| return true if this context is an instance
|
|
bool | is_source () const override |
| return true if this context is an instancing source
|
|
bool | is_empty () const |
| return true if this context is empty (it contains no sub-context, no object)
|
|
bool | is_embedded () const override |
| return true if the context is embedded in an object [feature currently not existing]
|
|
void | set_read_only (const bool &value) override |
|
void | set_user_locked (const bool &value) override |
|
void | set_remote (const bool &value) override |
|
bool | is_content_locked () const override |
|
bool | is_writable () const |
| returns true if all conditions are valid to write into the context, false otherwise
|
|
bool | is_referenceable () const override |
|
void | copy_content_from (const OfContext &source, const bool &recursive=false, const bool &clear_content=true) |
| Copies the content of specified source context to this context, the method will clear the content of this context before start copying.
|
|
void | copy_content_to (const CoreBasicArray< OfContext * > &target_contexts, const bool &recursive=false, const bool &clear_content=true) const |
|
OfItem * | add_copy (const OfItem &source) |
| create a copy of the specified item in the current context
|
|
OfObject * | add_copy (const OfObject &source) |
| create a copy of the specified object in the current context
|
|
OfContext * | add_copy (const OfContext &source) |
| create a copy of the specified context in the current context
|
|
CoreString | get_item_path (const OfItem &item) const |
| return the path of the given item relative to this context
|
|
CoreString | get_object_path (const OfObject &object) const |
| return the path of the given object relative to this context
|
|
CoreString | get_context_path (const OfContext &context) const |
| return the path of the given context relative to this context
|
|
void | get_object_path (const OfObject &object, CoreVector< OfContext * > &path) const |
| return the vector of contexts from the given object to this context
|
|
OfContext * | add_context (const CoreString &name, const CoreClassInfo *engine=0) |
| add a sub-context to this context
|
|
OfContext * | add_context (const CoreString &name, const CoreString &engine_name) |
| add a sub-context to this context
|
|
OfContext * | add_instance (OfContext &source, const CoreString &name="") |
| instanciate the specified context into this context
|
|
OfItem * | add_instance (OfItem &source, const CoreString &name="") |
| instanciate the specified item into this context
|
|
void | remove_context (OfContext &context) |
| remove a sub-context from this context
|
|
void | remove_context (const CoreString &name) |
| remove a sub-context from this context
|
|
void | remove_context (const unsigned int &index) |
| remove a sub-context from this context
|
|
void | remove_all_contexts () |
| remove all sub-contexts from this context
|
|
void | remove_all_contexts (const bool &remove_default, const bool &progress_bar_active=false) |
|
OfItem * | get_item (const unsigned int index) const |
| return an item by specifying its index
|
|
unsigned int | find_item_index (const OfItem *item) const |
| retrieve the item index in the context
|
|
OfItem * | find_item_neighbour (const OfItem *item, const bool previous_neighbour=true) const |
| retrieve the neighbour of the item in the context
|
|
void | move_item_index (const unsigned int old_index, const unsigned int new_index) |
| modify item position in the context from specified source index to target index
|
|
void | move_item_indices (const CoreBasicArray< OfItem * > &items, const OfItem *tgt_item, const bool add_after=true) |
| move specified items index to AFTER the target item position
|
|
unsigned int | get_context_count (const CoreBitFieldHelper &flags=OfItem::enabled_flags_mask) const |
| return the number of sub-contexts inside this context
|
|
unsigned int | get_all_contexts_count (const CoreBitFieldHelper &flags=OfItem::enabled_flags_mask) const |
| return the total number of sub-contexts recursively
|
|
const OfContext * | get_context (const unsigned &index, const CoreBitFieldHelper &flags=OfItem::enabled_flags_mask) const |
|
OfContext * | get_context (const unsigned &index, const CoreBitFieldHelper &flags=OfItem::enabled_flags_mask) |
| return the sub-context at the given index
|
|
void | get_contexts (CoreArray< OfContext * > &contexts, const CoreBitFieldHelper &flags=OfItem::enabled_flags_mask) const |
|
OfObject * | add_generic_object (const CoreString &object_name, const int &object_flags=OfObject::FLAG_NONE) |
| add a generic object (object of class "Generic") in this context
|
|
OfObject * | add_object (const CoreString &object_name, const CoreString &class_name, const int &flags=OfObject::FLAG_NONE, const OfItem::State &output_state=OfItem::STATE_LIVE) |
| add an object of the specified class in this context
|
|
OfObject * | add_instance (const OfObject &source, const CoreString &name="", const int &flags=OfObject::FLAG_NONE, const OfItem::State &output_state=OfItem::STATE_LIVE) |
| add an instance of the given source object
|
|
void | resolve_contexts (CoreSet< OfContext * > &contexts, const CoreBitFieldHelper &flags=OfItem::enabled_flags_mask) const |
| Get all the reachable contexts from this, resolving context instances to avoid multiple occurences.
|
|
void | resolve_all_contexts (CoreSet< OfContext * > &contexts, const CoreBitFieldHelper &flags=OfItem::enabled_flags_mask) const |
| Get all the reachable contexts from this (recursively or not), resolving context instances to avoid infinite recursion.
|
|
unsigned int | get_object_count (const CoreBitFieldHelper &flags=OfItem::enabled_flags_mask) const |
| return the number of objects inside this context
|
|
unsigned int | get_all_objects_count (const CoreBitFieldHelper &flags=OfItem::enabled_flags_mask) const |
| return the total number of objects inside this context (recursively)
|
|
void | remove_object (const CoreString &object_name, const bool &remove_static=false) |
| remove the specified object from this context
|
|
void | remove_object (OfObject &object, const bool &remove_static=false) |
| remove the specified object from this context
|
|
void | remove_all_objects (const bool &progress_bar_active=false) |
| remove all the objects of this context
|
|
CoreString | get_attribute_path (const OfAttr &attr) const |
| return the path of the given attribute relative this the context
|
|
void | clear () |
|
void | rename_object (OfObject &object, const CoreString &new_name) |
|
void | rename_object (const CoreString &old_name, const CoreString &new_name) |
| change the name of the specified object
|
|
OfAttr * | add_attribute (const OfItem::AttrCreationParams ¶ms) override |
| return an item by specifying its name
|
|
OfAttr * | add_attribute (const CoreString &attr, const OfAttr::Type &type, const OfAttr::Container &container=OfAttr::CONTAINER_SINGLE, const OfAttr::VisualHint &visual_hint=OfAttr::VISUAL_HINT_DEFAULT, const CoreString &group_name="general") override |
| add an attribute to the object
|
|
const OfAttr * | get_attribute (const CoreBasicString &attr) const override |
| find an attribute by specifying its name
|
|
OfAttr * | get_attribute (const CoreBasicString &attr) override |
| find an attribute by specifying its name
|
|
const OfAttr * | get_attribute (const unsigned int &index) const override |
| return the attribute at the given index
|
|
OfAttr * | get_attribute (const unsigned int &index) override |
| return the attribute at the given index
|
|
const OfAttr * | attribute_exists (const CoreBasicString &attr) const override |
| tell whether an attribute exists by specifying its name
|
|
OfAttr * | attribute_exists (const CoreBasicString &attr) override |
| tell whether an attribute exists by specifying its name
|
|
const unsigned int & | get_attribute_count () const override |
| return the total number of attribute in the object
|
|
const unsigned int | find_attribute_index (const CoreBasicString &attr_name) const override |
| returns the index of the attribute in the object if attribute found, -1 otherwise
|
|
const unsigned int | find_attribute_index (const OfAttr &attr) const override |
| returns the index of the attribute in the object if attribute found, -1 otherwise
|
|
unsigned int | set_attribute_index (const OfAttr &attr, const unsigned int &new_index) override |
| modifies the index of the specified attribute
|
|
void | remove_all_attributes () override |
|
void | remove_attribute (const CoreBasicString &name) override |
|
void | remove_attribute (OfAttr &attr) override |
|
void | reset_attributes () override |
| reset the values of class attributes as if the object was just created
|
|
bool | add_cam (const CamDesc &cam_desc) |
| defines a context attribute as a CAM by specifying its name and filtering rule
|
|
unsigned int | find_cam (const CoreString &cam_name) const |
| retrieves the index of the CAM specifying attribute name
|
|
unsigned int | find_cam (const OfAttr *custom_attr) const |
| retrieves the index of the CAM specifying the attribute itself
|
|
void | remove_cam (const unsigned int &index, const bool remove_attr=true) |
| removes a CAM specifying its index
|
|
void | remove_cam (const OfAttr *custom_attr, const bool remove_attr=true) |
| removes a CAM specifying attribute itself
|
|
void | retarget_cam (const unsigned int &index, const CoreString &rule) |
| modifies the rule of the CAM
|
|
void | retarget_cam (const OfAttr *custom_attr, const CoreString &rule) |
| modifies the rule of the CAM
|
|
void | retarget_cam (const unsigned int &index, const CoreString &rule, const CoreString &exclusion_rule) |
| modifies the rule of the CAM
|
|
void | retarget_cam (const OfAttr *custom_attr, const CoreString &rule, const CoreString &exclusion_rule) |
| modifies the rule of the CAM
|
|
void | untarget_cam (const unsigned int &index) |
| detaches the CAM custom attribute from overridden attributes
|
|
void | untarget_cam (const OfAttr *custom_attr) |
| detaches the CAM custom attribute from overridden attributes
|
|
void | remove_all_cams (const bool remove_attr=true) |
| remove alls CAM from this context
|
|
void | disable_cam (const unsigned int &index, const bool &disabled) |
| Sets the CAM as disabled (not applied)
|
|
bool | is_cam_disabled (const unsigned int &index) const |
| Gets the CAM disabled state.
|
|
void | set_cam_builtin (const unsigned int &index, const bool &is_builtin) |
| Sets the CAM as builting (cannot be removed, nor definition edited)
|
|
bool | is_cam_builtin (const unsigned int &index) const |
| Gets the CAM builtin state.
|
|
unsigned int | get_cam_count () const |
|
CoreString | get_cam_rule (const unsigned int &index) const |
|
CoreString | get_cam_exclusion_rule (const unsigned int &index) const |
|
const OfAttr * | get_cam_attribute (const unsigned int &index) const |
|
CamDesc | get_cam_desc (const unsigned int &index) const |
|
OfObject * | create_empty_CAM_set () |
|
bool | create_CAM_set (OfObject &target_cam_set) |
|
bool | load_CAM_set (const OfObject &target_cam_set) |
|
void | get_objects (const CoreString &class_name, CoreArray< OfObject * > &objects, const int &mask, const bool &inclusive) const |
|
void | get_all_objects (const CoreString &class_name, CoreArray< OfObject * > &objects, const int &mask, const bool &inclusive) const |
|
void | get_all_objects (const CoreBasicArray< CoreString > &class_names, CoreArray< OfObject * > &objects, const int &mask, const bool &inclusive) const |
|
void | get_all_objects (const CoreString &class_name, CoreSet< OfObject * > &objects, const int &mask, const bool &inclusive) const |
|
void | get_all_objects (const CoreBasicArray< CoreString > &class_names, CoreSet< OfObject * > &objects, const int &mask, const bool &inclusive) const |
|
void | get_objects (const CoreString &class_name, CoreArray< OfObject * > &objects, const CoreBitFieldHelper &flags=OfItem::enabled_but_private_flags_mask) const |
|
void | get_objects (const CoreBasicArray< CoreString > &class_names, CoreArray< OfObject * > &objects, const CoreBitFieldHelper &flags=OfItem::enabled_but_private_flags_mask) const |
|
void | get_objects (CoreArray< OfObject * > &objects, const CoreBitFieldHelper &flags=OfItem::enabled_flags_mask) const |
| gather all the objects contained in this context (not recursively)
|
|
void | get_items (CoreVector< OfItem * > &items, const CoreBitFieldHelper &flags=OfItem::enabled_flags_mask) const |
|
void | get_all_objects (const CoreString &class_name, CoreArray< OfObject * > &objects, const CoreBitFieldHelper &flags=OfItem::enabled_but_private_flags_mask, const bool &consider_embedded=false) const |
| gather all the objects matching the given criteria recursively
|
|
void | get_all_objects (const CoreBasicArray< CoreString > &class_names, CoreArray< OfObject * > &objects, const CoreBitFieldHelper &flags=OfItem::enabled_but_private_flags_mask, const bool &consider_embedded=false) const |
| gather all the objects matching the given criteria recursively
|
|
void | get_all_objects (const CoreString &class_name, CoreSet< OfObject * > &objects, const CoreBitFieldHelper &flags, const bool &consider_embedded=false) const |
| gather all the objects matching the given criteria contained in this context not recursively
|
|
void | get_all_objects (const CoreBasicArray< CoreString > &class_names, CoreSet< OfObject * > &objects, const CoreBitFieldHelper &flags, const bool &consider_embedded=false) const |
| gather all the objects matching the given criteria recursively
|
|
void | get_all_objects (CoreArray< OfObject * > &objects, const CoreBitFieldHelper &flags=OfItem::enabled_flags_mask, const bool &consider_embedded=false) const |
| gather all the objects recursively
|
|
void | get_all_objects (CoreSet< OfObject * > &objects, const CoreBitFieldHelper &flags=OfItem::enabled_flags_mask, const bool &consider_embedded=false) const |
| gather all the objects recursively
|
|
void | get_all_items (CoreVector< OfItem * > &items, const CoreBitFieldHelper &flags=OfItem::enabled_flags_mask) const |
| gather all items (objects and contexts) of this context - Output vector version
|
|
void | get_all_items (CoreSet< OfItem * > &items, const CoreBitFieldHelper &flags=OfItem::enabled_flags_mask) const |
| gather all items (objects and contexts) of this context - Output set version
|
|
void | get_all_instances (CoreVector< OfContext * > &instances, const bool &recursive=false, const CoreBitFieldHelper &flags=OfItem::enabled_flags_mask) const |
| gather all instances of the context and sub-instances if recursive flag is set
|
|
unsigned int | get_instance_count (const CoreBitFieldHelper &flags=OfItem::enabled_flags_mask) const |
| return the number of instances of this context
|
|
OfContext * | get_instance (const unsigned int &index, const CoreBitFieldHelper &flags=OfItem::enabled_flags_mask) const |
|
OfItem * | get_last_event_item () const |
|
OfObject * | get_last_event_object () const |
|
OfContext * | get_last_event_context () const |
|
OfContext * | add_pending_context (const CoreString &name) |
|
OfContext * | add_pending_context2 (const CoreString &ctx_path) |
|
OfContext * | add_pending_context (const CoreString &ctx_path, const CoreString &engine_name) |
| Add a new pending context with the specified engine name.
|
|
OfObject * | add_pending_object (const CoreString &object_name, const CoreString &class_name) |
|
OfItem * | add_pending_item (const CoreString &object_name, const CoreString &item_type) |
|
CoreString | get_as_string (const OfSerialOptions &options=OfSerialOptions::get_default()) const override |
| return the serialization of the context
|
|
ParserEntry * | serialize (const OfSerialOptions &options=OfSerialOptions::get_default(), AppProgressBar *progress_bar=0) const |
| return a serialization of this context
|
|
bool | deserialize (const ParserEntry &serial, const OfSerialOptions &options=OfSerialOptions::get_default(), AppProgressBar *progress_bar=0) |
| deserialize the given serialization into this context
|
|
OfObject * | add_object (const ParserEntry &entry, const OfSerialOptions &options=OfSerialOptions::get_default(), const int &flags=OfObject::FLAG_NONE) |
| add an object by specifying its serialization
|
|
OfObject * | add_embedded_object (OfObject &parent_object, ParserEntry &entry, const OfSerialOptions &options=OfSerialOptions::get_default()) |
|
OfContext * | add_context (const ParserEntry &serial, const OfSerialOptions &options=OfSerialOptions::get_default()) |
| add a sub-context to this context and sets its content from the specified serialization
|
|
OfItem * | paste_item (const ParserEntry &serial, const OfSerialOptions &options=OfSerialOptions::get_default()) |
| paste an item by specifying its serialization
|
|
OfContext * | paste_context (const ParserEntry &serial, const OfSerialOptions &options=OfSerialOptions::get_default()) |
| paste a context by specifying its serialization
|
|
OfObject * | paste_object (const ParserEntry &serial, const OfSerialOptions &options=OfSerialOptions::get_default()) |
| paste an object by specifying its serialization
|
|
void | paste_items (const CoreBasicArray< ParserEntry * > &entries, CoreVector< OfItem * > &created_items, const OfSerialOptions &options=OfSerialOptions::get_default()) |
|
OfAttr * | deserialize_cam (const ParserEntry &entry) |
|
bool | serialize_cams (ParserGroup &into_group) const |
|
void | deserialize_cams (const ParserGroup &cam_group, CoreVector< OfAttr * > &added_cams) |
|
void | protect (const bool &enable) const |
| tag the context to whether it is in use (for rendering for example)
|
|
bool | is_protected () const override |
| return true if the context is in use (for rendering for example)
|
|
const bool & | is_object () const override |
|
const bool & | is_context () const override |
|
const OfObject * | to_object () const override |
|
OfObject * | to_object () override |
|
const OfContext * | to_context () const override |
|
OfContext * | to_context () override |
|
OfItemHandle | get_traversal_item () override |
|
const CoreString & | get_type () const override |
| get item type
|
|
bool | can_serialize (const int &serial_mode) const override |
|
unsigned int | get_level () const |
| return how deep (the level) of this context
|
|
bool | import_project (const CoreString &filename, const OfSerialOptions::Mode &serial_mode, const OfImportOptions::VariableMode &variable_mode, const OfImportOptions::AovMode &aov_mode, CoreVector< OfItem * > &items, OfImportOptions::LogMode log_mode=OfImportOptions::LOG_MODE_ERROR) |
| import the items of a project into this context
|
|
bool | import_build (const CoreString &filename, const OfSerialOptions::Mode &serial_mode, const OfImportOptions::VariableMode &variable_mode, const OfImportOptions::AovMode &aov_mode, CoreVector< OfItem * > &items, OfImportOptions::LogMode log_mode=OfImportOptions::LOG_MODE_ERROR) |
| import the items of a build into this context
|
|
void | export_project (const CoreString &filename) const |
| save all items of this context as a project
|
|
OfContext * | reference_file (const CoreString &filename, const OfImportOptions::VariableMode &import_variable_mode=OfImportOptions::VARIABLE_MODE_APPEND, const OfImportOptions::AovMode &import_aov_mode=OfImportOptions::AOV_MODE_IMPORT) |
| reference an external project importing all items into this context
|
|
bool | is_reference () const |
|
bool | is_override () const |
|
bool | is_scene_assembly () const |
|
bool | is_scene_assembly_read () const |
|
void | set_scene_assembly_source (OfContext *source) |
|
bool | is_build_package () const |
|
void | get_external_dependencies (CoreSet< OfItem * > &external_refs, CoreSet< OfItem * > &external_srcs) const |
|
void | get_external_dependencies (CoreHashTable< OfItem *, CoreSet< OfItem * > > &external_refs, CoreHashTable< OfItem *, CoreSet< OfItem * > > &external_srcs) const |
| get_external_dependencies
|
|
void | get_statistics (SysStatistic &stats) const |
|
OfContextEngine & | get_engine () const |
|
const CoreString & | get_engine_serial_name () const |
|
const CoreString & | get_engine_identifier_name () const |
|
void | set_engine (const CoreClassInfo &engine_info, ParserGroup *engine_settings=0) |
|
void | set_engine (const CoreString &engine_name, ParserGroup *engine_settings=0) |
|
OfContextEngine * | get_root_engine () const |
|
int | get_protected_object_count () const |
|
const bool & | is_import_point () const |
| Returns true if this context is an import point of a project or a reference.
|
|
void | set_import_point (const bool &flag) |
| Set this context as import point.
|
|
const GuiIcon * | get_item_icon () const override |
| Item icon get accessor.
|
|
void | set_pending (const bool &value) override |
|
void | set_disabled (const bool &value) override |
|
void | set_parent_disabled (const bool &value) override |
|
void | set_source_disabled (const bool &value) override |
|
void | set_shadowed (const bool &value) override |
|
void | set_parent_shadowed (const bool &value) override |
|
void | set_source_shadowed (const bool &value) override |
|
bool | options_exists () const |
|
bool | is_options (const OfObject &object) const |
|
OfObject & | get_options () const |
|
bool | is_child_of (const CoreSet< OfContext * > &parent_contexts) const |
|
void | set_name_dirty () override |
|
void | send_event (const CoreString &event) override |
|
void | _set_disabled (const bool &value, CoreSet< OfAttr * > &attrs_to_notify, CoreVector< int > &dependency_types) override |
|
void | _set_parent_disabled (const bool &value, CoreSet< OfAttr * > &attrs_to_notify, CoreVector< int > &dependency_types) |
|
void | _set_source_disabled (const bool &value, CoreSet< OfAttr * > &attrs_to_notify, CoreVector< int > &dependency_types) |
|
void | _set_shadowed (const bool &value, CoreSet< OfAttr * > &attrs_to_notify, CoreVector< int > &dependency_types) override |
|
void | _set_parent_shadowed (const bool &value, CoreSet< OfAttr * > &attrs_to_notify, CoreVector< int > &dependency_types) |
|
void | _set_source_shadowed (const bool &value, CoreSet< OfAttr * > &attrs_to_notify, CoreVector< int > &dependency_types) |
|
template<Flag STATE> |
void | forward_state (const bool &old_value, const bool &new_value, CoreSet< OfAttr * > &attrs_to_notify, CoreVector< int > &dependency_types) |
|
void | activate_instance_flag (const int &flag) |
|
void | desactivate_instance_flag (const int &flag) |
|
void | set_instance_flags (const int &flag) |
|
void | activate_flag (const int &flag) override |
|
void | desactivate_flag (const int &flag) override |
|
void | set_flags (const int &flag) override |
|
OfAttr * | _add_cam (const ParserEntry &attr_serial, const CamDesc &cam_desc) |
|
void | _resolve_cam_rule (const CoreVector< CoreString > &inclusive_rules, const CoreVector< CoreString > &exclusion_rules, CoreVector< OfAttr * > &retrieved_attrs) const |
|
void | _recreate_engine (OfContextEngine::GetDescriptorCallback &creation_cb, ParserGroup *engine_settings) |
|
bool | process_copy_paste (const CoreVector< OfContext * > &contexts_to_copy, const CoreVector< OfObject * > &objects_to_copy, CoreVector< OfItem * > &created_items) |
|
void | clear_caps () |
|
void | clear_flags () |
|
bool | get_flag_is_active (const int &flag) const |
|
virtual bool | is_private () const |
|
virtual bool | is_static () const |
|
virtual bool | is_remote () const |
|
bool | is_user_locked () const |
|
virtual bool | is_pending () const |
|
virtual bool | is_scene_assembly_temp () const |
|
virtual bool | is_overridden_in_scene_assembly () const |
|
virtual bool | is_missing () const |
|
virtual bool | is_zombie () const |
|
virtual bool | is_disable_cyclic_check () const |
|
virtual bool | is_overriden () const |
|
virtual bool | is_external () const |
|
virtual bool | is_added () const |
|
virtual bool | is_removed () const |
|
bool | is_shadowed () const |
|
bool | is_source_disabled () const |
|
bool | is_parent_disabled () const |
|
bool | is_enabled () const |
|
bool | is_disabled () const |
|
bool | is_read_only () const |
| Returns true if this item has been flagged read_only ! for more complex usage see is_editable.
|
|
bool | is_external_dependency (const OfContext &context) const |
|
bool | is_in_undo_process () const |
|
void | set_in_undo_process (const bool &flag) |
|
virtual bool | is_kindof (const CoreClassInfo &class_info) const override |
|
bool | is_implicit () const |
|
bool | is_explicit () const |
|
bool | is_build_visible () const |
|
bool | is_build_package_read_only () const |
| Returns true if this item is in a read only build package (no active layer)
|
|
bool | is_editable (const int &read_only_mask=RO_ALL_MASK) const |
|
virtual void | set_private (const bool &value) |
|
virtual void | set_static (const bool &value) |
|
virtual void | set_content_locked (const bool &value) |
|
virtual void | set_zombie (const bool &value) |
|
virtual void | set_disable_cyclic_check (const bool &value) |
|
virtual void | set_external (const bool &value) |
|
virtual void | set_overriden (const bool &value) |
|
virtual void | set_missing (const bool &value) |
|
virtual void | set_added (const bool &value) |
|
virtual void | set_removed (const bool &value) |
|
virtual void | set_scene_assembly_temp (const bool &value) |
|
virtual void | set_overriden_in_scene_assembly (const bool &value) |
|
bool | get_can_delete () const |
|
bool | get_can_copy () const |
|
bool | get_can_paste () const |
|
bool | get_can_move () const |
|
bool | get_can_instantiate () const |
|
bool | get_can_localize () const |
|
bool | get_can_rename () const |
|
bool | is_shadowable () const |
|
void | set_name (const CoreString &new_name) |
|
bool | is_name_dirty () const |
|
CoreString | get_project_full_name () const |
|
const CoreString & | get_name () const |
|
OfObjectFactory & | get_factory () const |
| return the object factory
|
|
OfChannelManager & | get_channel_manager () const |
|
OfApp & | get_application () const |
| return the application
|
|
bool | has_position (const CoreString &pos_slot) const |
|
void | set_position (const CoreString &pos_slot, const GMathVec2i &pos) |
|
void | set_position (const CoreString &pos_slot, const GMathVec3i &pos) |
|
void | set_position (const CoreString &pos_slot, const int &x, const int &y, const int &property=-1) |
|
bool | get_position (const CoreString &pos_slot, GMathVec2i &pos) const |
|
bool | get_position (const CoreString &pos_slot, GMathVec3i &pos) const |
|
bool | get_nodal_property (const CoreString &pos_slot, int &value) const |
|
void | set_nodal_property (const CoreString &pos_slot, const int &value) |
|
const CoreString & | get_last_changed_position () const |
|
void | serialize_positions (ParserGroup &group) const |
|
void | deserialize_positions (const ParserGroup &group) |
|
int | get_node_status () const |
|
const long unsigned long & | get_creation_date () const |
|
const long unsigned long & | get_modified_date () const |
|
size_t | get_memory_size () const override |
|
OfItem * | get_parent_item () const |
|
OfContext & | get_context () |
| return the context of the item
|
|
const OfContext & | get_context () const |
| return the context of the item
|
|
OfItem * | get_source () const |
| return the source of the instance
|
|
const OfItem * | get_scene_assembly_source_item () const |
| return the first real item from which the item was created from in the scene assembly
|
|
OfItem * | get_scene_assembly_source_item () |
| return the first real item from which the item was created from in the scene assembly
|
|
const State & | get_state () const |
|
void | set_state (const State &new_state) |
|
CoreString | set_comment (const CoreString &comment) |
| sets comment value
|
|
CoreString | get_comment () const |
|
CoreString | set_colortag (const CoreString &tag) |
| sets tag value
|
|
CoreString | get_colortag () const |
|
bool | test_flags (const CoreBitFieldHelper &flags) |
|
const int & | get_internal_flags () const |
|
bool | is_cap_delete () const |
|
bool | is_cap_rename () const |
|
bool | is_cap_copy () const |
|
bool | is_cap_paste () const |
|
bool | is_cap_move () const |
|
bool | is_cap_instantiate () const |
|
bool | is_cap_localize () const |
|
bool | is_cap_localize_attributes () const |
|
bool | is_cap_display () const |
|
void | set_cap_delete (bool is_active) |
|
void | set_cap_rename (bool is_active) |
|
void | set_cap_copy (bool is_active) |
|
void | set_cap_paste (bool is_active) |
|
void | set_cap_move (bool is_active) |
|
void | set_cap_instantiate (bool is_active) |
|
void | set_cap_localize (bool is_active) |
|
void | set_cap_localize_attributes (bool is_active) |
|
void | set_cap_display (bool is_active) |
|
| EventObject () |
| Constructor.
|
|
| EventObject (const EventObject &src) |
| Copy Constructor.
|
|
virtual | ~EventObject () override |
| Destructor.
|
|
void | connect (EventObject &sender, const CoreString &event_id, EventInfoMethod event_cb, void *data=0) |
| Connects this to an object to listen to a specific event.
|
|
void | connect (EventObject &sender, EventInfoMethod event_cb, void *data=0) |
| Connects this to an object to listen any of its events.
|
|
bool | disconnect (EventObject &sender, const CoreString &event_id, EventInfoMethod event_cb, void *data=0) |
|
bool | disconnect_all (EventObject &sender) |
| Disconnects from all objects sender was listening on.
|
|
void | disconnect_all () |
| Disconnects from all objects we were listening on.
|
|
void | remove_all_connection () |
| Disconnects object from other objects it is listening to, and also disconnects all objects listening to it.
|
|
void | raise_event (const CoreString &event_id) const |
| sends an event
|
|
void | raise_event (const EventInfo &event_info) const |
| sends an event
|
|
bool | is_connected (EventObject &sender, const CoreString &event_id, void *data) |
|
void | set_mute (const bool &mute) |
| Asks for object muting. This will increase or decrease the muting counter. Unmuting may not be immediat since it will happen only when counter reaches 0.
|
|
bool | is_mute () const |
| Returns if object is muted.
|
|
CoreArray< EventObject * > | get_senders () const |
|
unsigned int | get_sender_count () const |
|
unsigned int | get_receiver_count () const |
|
void | connect (EventObject &sender, const CoreString &event_id, EventMethod event_cb, void *data=0) |
| Connects this to an object to listen to a specific event.
|
|
void | connect (EventObject &sender, EventMethod event_cb, void *data=0) |
| Connects this to an object to listen any of its events.
|
|
bool | disconnect (EventObject &sender, const CoreString &event_id, EventMethod event_cb, void *data=0) |
| Disconnects this from an object for a specific event.
|
|
| CoreCustomData (const CoreCustomData &src) |
|
void | add_custom_data (void *key, const bool &data) |
|
void | add_custom_data (void *key, const int &data) |
|
void | add_custom_data (void *key, const unsigned int &data) |
|
void | add_custom_data (void *key, const char *data) |
|
void | add_custom_data (void *key, const CoreString &data) |
|
void | add_custom_data (void *key, const double &data) |
|
void | add_custom_data (void *key, void *data) |
|
void | remove_custom_data (void *key) |
|
void | remove_all_custom_data () |
|
void | set_custom_data (void *key, const bool &data) |
|
void | set_custom_data (void *key, const int &data) |
|
void | set_custom_data (void *key, const unsigned int &data) |
|
void | set_custom_data (void *key, const double &data) |
|
void | set_custom_data (void *key, const char *data) |
|
void | set_custom_data (void *key, const CoreString &data) |
|
void | set_custom_data (void *key, void *data) |
|
void | get_custom_data (void *key, bool &data) const |
|
void | get_custom_data (void *key, int &data) const |
|
void | get_custom_data (void *key, unsigned int &data) const |
|
void | get_custom_data (void *key, double &data) const |
|
void | get_custom_data (void *key, CoreString &data) const |
|
void | get_custom_data (void *key, void *&data) const |
|
bool | is_kindof (const CoreBaseObject &object) const |
|
CoreString | get_class_info_name () const |
|
const unsigned long & | get_class_info_id () const |
|
virtual const CoreClassInfo & | get_class_info () const |
|
template<class T > |
T * | cast () |
|
template<class T > |
const T * | cast () const |
|
bool | is_kindof (const CoreClassInfo &cinfo) const |
|
|
static CoreString | get_object_name (const CoreString &full_path) |
|
static const CoreString & | get_global_context_name () |
|
static const CoreString & | get_default_context_name () |
|
static CoreString | get_cam_group_name () |
|
static bool | check_cam_rule (const CoreString &rule, CoreString &error_message) |
| checks quality of cam rule
|
|
static bool | check_cam_exclusion_rule (const CoreString &exclusion_rule, CoreString &error_message) |
| checks quality of cam exclusion rule
|
|
static bool | is_cam_type_managed (const OfAttr::Type &type, const OfAttr::VisualHint &hint) |
|
static bool | parse_attribute (const CoreString &str, CoreString &name, unsigned int &index, bool &is_array, bool &index_specified) |
|
static ParserEntry * | serialize_cam (const OfAttr *attr, const CamDesc &cam_desc) |
|
static ParserEntry * | serialize_cam (ParserEntry *attr_cid_serial, const CamDesc &cam_desc) |
|
static bool | deserialize_cam (const ParserEntry &entry, ParserEntry *&attr_serial, CamDesc &cam_desc) |
|
static CoreString | get_name_from_filename (const CoreString &filename) |
|
static void | register_engine (const CoreClassInfo &engine_class_info, OfContextEngine::GetDescriptorCallback callback) |
|
static bool | is_valid_serial (const ParserEntry *serial) |
|
static bool | is_valid_serial_name (const CoreString &serial_name) |
|
static const GuiIcon * | get_default_icon () |
| Provides default icon for context, this method is for convenience usage.
|
|
static unsigned int | get_context_cap (const OfContext *context) |
|
static bool | is_observed_context (const OfContext *observed_context, const OfContext *event_context) |
| returns result of is_same_or_source OR is_child_of_source means that something that happend in event_context is in concern with the observed context
|
|
static bool | is_same_or_source (const OfContext *context_1, const OfContext *context_2) |
| Returns true if the context_2 is same as context_1 or the source of context_1.
|
|
static bool | is_child_of_source (const OfContext *context_1, const OfContext *context_2) |
| \ brief Returns true if the context_2 (or one of its instance) is a child of context_1 (or child of source of context_1 is it is an instance)
|
|
static const CoreString & | get_options_object_name () |
| checks if specified object is the options object of the context
|
|
static void | remove_items (OfObjectFactory &factory, const CoreBasicArray< CoreString > &full_names, AppProgressBar *progress_bar) |
|
static bool | _is_matching_cam_rule (const OfObjectFactory &factory, const CoreString &ctx_name, const OfAttr *attr, const CoreVector< CoreString > &inclusive_rules, const CoreVector< CoreString > &exclusion_rules) |
|
static bool | _is_matching_cam_rule (const OfObjectFactory &factory, const CoreString &ctx_name, const CoreString &object_full_name, const CoreString &attr_name, const CoreVector< CoreString > &inclusive_rules, const CoreVector< CoreString > &exclusion_rules) |
|
static void | _unapply_cams (OfItem *item) |
|
static void | _unapply_cams (OfContext *context) |
|
static void | _unapply_cams (OfObject *object) |
|
static void | _apply_cams (OfItem *item) |
|
static void | _apply_cams (OfContext *context) |
|
static void | _apply_cams (OfObject *object) |
|
static void | _apply_cams (OfAttr *attr) |
|
static int | clear_cam_cb (const OfAction &action, OfObject &object, void *data) |
|
static int | save_cam_set_cb (const OfAction &action, OfObject &object, void *data) |
|
static int | load_cam_set_cb (const OfAction &action, OfObject &object, void *data) |
|
static int | import_cam_set_cb (const OfAction &action, OfObject &object, void *data) |
|
static
OfContextEngine::GetDescriptorCallback | get_engine_descriptor_callback (const CoreClassInfo &engine) |
|
static
OfContextEngine::GetDescriptorCallback | get_engine_descriptor_callback (const CoreString &serial_name) |
|
static void | set_disabled (const CoreVector< OfItem * > &items_to_disable, const bool &disabled_state) |
|
static void | set_shadowed (const CoreVector< OfItem * > &items_to_shadow, const bool &shadow_state) |
|
static bool | is_valid_serial (const ParserEntry *serial) |
|
static const CoreString & | get_name (const ParserEntry *serial) |
|
static void | make_creation_params (const OfItem::AttrCreationParams &creation_params, CoreVector< CoreString > &additionnal_params, CoreVector< CoreString > &additionnal_params_values) |
|
static void | extract_creation_params (const CoreBasicArray< CoreString > &additionnal_params, const CoreBasicArray< CoreString > &additionnal_params_values, OfItem::AttrCreationParams &creation_params) |
|
static unsigned int | is_item_property_event (const CoreString &event) |
|
static unsigned int | is_item_property_name (const CoreString &name) |
|
static const CoreString & | get_item_property_name (unsigned int property_id) |
|
static void | register_item_property (const CoreString &name, const CoreString &event, PropertyExtractor get, PropertyIntegrator set) |
| Declare a new property for all OfItems.
|
|
static bool | serialize_item_property (unsigned int property_id, const OfItem &item, ParserEntry *serial) |
| Retrieve item's current property value as serial data.
|
|
static bool | deserialize_item_property (unsigned int property_id, OfItem &item, const ParserEntry *serial) |
| Set item's property value from serial data.
|
|
static void | connect (EventObject &sender, const CoreString &event_id, EventObject &receiver, EventInfoMethod event_cb, void *data=0) |
| Static version of the above function.
|
|
static void | connect (EventObject &sender, EventObject &receiver, EventInfoMethod event_cb, void *data=0) |
| Static version of the above function.
|
|
static void | connect (EventObject &sender, const CoreString &event_id, EventInfoFunction event_cb, void *data=0) |
| Connects to an object to listen to a specific event.
|
|
static void | connect (EventObject &sender, EventInfoFunction event_cb, void *data=0) |
| Connects to an object to listen any of its events.
|
|
static bool | disconnect (EventObject &sender, const CoreString &event_id, EventInfoFunction event_cb, void *data=0) |
|
static void | raise_event (EventObject &sender, const CoreString &event_id) |
| Sends an event.
|
|
static void | raise_event (EventObject &sender, const EventInfo &event_info) |
| Sends an event.
|
|
static void | connect (EventObject &sender, const CoreString &event_id, EventFunction event_cb, void *data=0) |
| Connects to an object to listen to a specific event.
|
|
static void | connect (EventObject &sender, EventFunction event_cb, void *data=0) |
| Connects to an object to listen any of its events.
|
|
static void | connect (EventObject &sender, const CoreString &event_id, EventObject &receiver, EventMethod event_cb, void *data=0) |
| Static version of the above function.
|
|
static void | connect (EventObject &sender, EventObject &receiver, EventMethod event_cb, void *data=0) |
| Static version of the above function.
|
|
static bool | disconnect (EventObject &sender, const CoreString &event_id, EventFunction event_cb, void *data=0) |
| Disconnects this from an object for a specific event.
|
|
static void * | get_custom_data_key (const CoreString &key) |
|
static const CoreClassInfo & | class_info () |
|
template<class T > |
static T * | cast (CoreBaseObject *object) |
|
template<class T > |
static const T * | cast (const CoreBaseObject *object) |
|
static const CoreClassInfo & | class_info () |
| Get the type descriptor of this instance.
|
|