|
SP< OctreeSubNode > | AddNode (SP< SceneNode > &node, int currentlevel, int maxLevel, int subdivelevel) |
| add a node More...
|
|
bool | RemoveNode (SceneNode *node) |
| remove a node More...
|
|
void | Divide () |
| divide
|
|
int | FindSubNode (SceneNode *node) |
| find a sub node More...
|
|
int | FindSubNode (BBox *bbox) |
| find a sub node from a bounding box More...
|
|
OctreeSubNode * | GetFather () |
| get the father More...
|
|
bool | SonsAreEmpty () |
| check if sons are empty More...
|
|
void | KillSons () |
| kill sons
|
|
CullingObject::CULLING_RESULT | RecurseCullSubNodes (const kstl::vector< PrecomputedCullInfo > &precull, TravState *state, unsigned int cullSubMask) |
| perform culling recursivelly on sub node More...
|
|
SP< OctreeSubNode > & | GetSubNode (int index) |
| get a sub node More...
|
|
const kstl::vector< SceneNode * > & | GetObjectList () |
| get object list More...
|
|
bool | HasSons () |
| check if the octree has sons More...
|
|
| DECLARE_DECORABLE_2_PARAMS (bool, Cull, Node3D, TravState *, unsigned int) |
|
virtual void | TravDraw (TravState *state) |
|
virtual void | TravCull (TravState *state) |
|
bool | addItem (const CMSP &item, ItemPosition pos=Last DECLARE_DEFAULT_LINK_NAME) override |
| add item at first or last position
|
|
bool | removeItem (const CMSP &item DECLARE_DEFAULT_LINK_NAME) override |
|
void | localMove (const v3f &move) |
| move local node position ( pos = move + pos )
|
|
void | globalMove (const v3f &move) |
| move global node position ( gpos = gmove + gpos )
|
|
bool | addItem (const CMSP &item, ItemPosition pos=Last DECLARE_DEFAULT_LINK_NAME) override |
| add item at first or last position
|
|
void | Init () |
| Modifiable managmenent.
|
|
void | EmptyItemList () |
| remove all items (sons)
|
|
CMSP | GetInstanceByPath (const std::string &path) |
| return the instance corresponding to the given path in sons tree
|
|
std::string | GetRuntimeID () const |
| ID.
|
|
CoreModifiableAttribute * | getAttribute (KigsID labelid) const |
| Attribute management.
|
|
u32 | getNbArrayElements (KigsID attributeLabel) const |
| return element count for an array type attribute
|
|
template<typename attribute_type , typename value_type > |
attribute_type * | AddDynamicAttribute (KigsID ID, const value_type &value) |
| Dynamic attribute management.
|
|
const kigs::unordered_map< KigsID, ModifiableMethodStruct > * | GetMethods () |
| Method management.
|
|
bool | aggregateWith (CMSP &item, ItemPosition pos=Last) |
| Aggregate management.
|
|
void | flagAsNotificationCenterRegistered () |
| Flags.
|
|
void | InitParametersFromList (const std::vector< CoreModifiableAttribute * > *params) |
| Utility. More...
|
|
virtual void | UninitModifiable () |
| called when InitModifiable has failled : reset read/write flag on all init params More...
|
|
virtual void | ProtectedDestroy () |
| Destroy method decrement refcounter and delete instance if no more used. More...
|
|
virtual bool | removeItem (const CMSP &item) |
| remove item (son)
|
|
|
static std::vector< CMSP > | GetRootInstances (const KigsID &cid, bool exactTypeOnly=false) |
| static method : return the set of all root instances of the given type
|
|
static void | Append (std::string &XMLString, const std::list< CoreModifiable * > &toexport, bool recursive, ExportSettings *settings=nullptr) |
| static method to export the several CoreModifiable to an XML file. if recursive flag is set to true, export also all sons tree More...
|
|
static void | Export (const std::string &filename, CoreModifiable *toexport, bool recursive=false, ExportSettings *settings=nullptr) |
| static method to export the given CoreModifiable to an XML file. if recursive flag is set to true, export also all sons tree More...
|
|
static XMLNode * | ExportToXMLNode (CoreModifiable *toexport, XML *owner_xml_file, bool recursive, ExportSettings *settings=nullptr) |
| static method to export the given CoreModifiable to an XML Node. if recursive flag is set to true, export also all sons tree More...
|
|
static std::string | ExportToXMLString (CoreModifiable *toexport, bool recursive, ExportSettings *settings=nullptr) |
| static method to export the given CoreModifiable to an XML file. if recursive flag is set to true, export also all sons tree More...
|
|
static void | Export (std::string &XMLString, const std::list< CoreModifiable * > &toexport, bool recursive, ExportSettings *settings=nullptr) |
| static method to export the several CoreModifiable to an XML file. if recursive flag is set to true, export also all sons tree More...
|
|
static CMSP | Import (const std::string &filename, bool noInit=false, bool keepImportFileName=false, ImportState *state=nullptr, const std::string &override_name="") |
| return an new CoreModifiable instance using the description found in XML file given by name
|
|
static CMSP | GetInstanceByGlobalPath (const std::string &path) |
| static method : return the instance corresponding to the given path, and given search start
|
|
static void | debugPrintfFullTree (int maxindent=3) |
| Editor. More...
|
|
void | removeUser (CoreModifiable *user) override |
| remove user (parent)
|
|
void | addUser (CoreModifiable *user) override |
| add the given parent to list
|
|
void | InitModifiable () override |
| default modifiable init : set all initparams to readonly and set initflag to true More...
|
|
void | PreDrawDrawable (TravState *state) |
| call predraw for drawable sons of this node return true if at least one drawable son was found More...
|
|
void | DrawDrawable (TravState *state) |
| call draw for drawable sons of this node More...
|
|
void | PostDrawDrawable (TravState *state) |
| call postdraw for drawable sons of this node More...
|
|
void | RecomputeGlobalToLocal () |
|
void | RecomputeGlobalBoundingBox () |
|
virtual void | RecomputeBoundingBox () |
|
void | UpdateAggregates (const Timer &timer, void *addParam) |
| Internals.
|
|
void | Export (std::vector< CoreModifiable * > &savedList, XMLNode *currentNode, bool recursive, ExportSettings *settings) |
| Export. More...
|
|
CoreModifiableAttribute * | GenericCreateDynamicAttribute (CoreModifiable::ATTRIBUTE_TYPE type, KigsID ID) |
| create and add dynamic attribute except arrays
|
|
template<typename StringType > |
static CMSP | Import (XMLNodeTemplate< StringType > *currentNode, CoreModifiable *currentModifiable, ImportState &importState) |
| recusrive method to add sons and attributes found in the XML file
|
|
Node in an octree.
Using a Node3D for this is probably overkilling.
Inherited Attributes
Inherited Methods