|
| Base2DLayer (const kstl::string &name, DECLARE_CLASS_NAME_TREE_ARG) |
| constructor More...
|
|
void | addCamera (CoreModifiable *) override |
| no camera for 2D Layer, throw an error
|
|
bool | removeCamera (CoreModifiable *) override |
| no camera for 2D Layer, throw an error
|
|
virtual void | updateLayerFromBuffer (unsigned char *buffer, unsigned int width, unsigned int height, kstl::string name, TinyImage::ImageFormat format=TinyImage::ABGR_16_1555_DIRECT_COLOR)=0 |
| update the texture from a buffer (used with camera) More...
|
|
bool | addItem (const CMSP &item, ItemPosition pos=Last DECLARE_DEFAULT_LINK_NAME) override |
| call directly CoreModifiable addItem (not Scene3D or Node3D) More...
|
|
bool | removeItem (const CMSP &item DECLARE_DEFAULT_LINK_NAME) override |
| call directly CoreModifiable addItem (not Scene3D or Node3D) More...
|
|
void | TravDraw (TravState *state) override=0 |
| draw the scene3D More...
|
|
void | TravCull (TravState *state) override=0 |
| call cull process for this node and all sons at visible positions More...
|
|
BaseTilesBank * | GetTileBank () |
| get the tile bank More...
|
|
VirtualTileScreen * | GetVirtualScreen () |
| get the virtual screen More...
|
|
BaseTileBuffer * | GetTileBuffer () |
| get the tile buffer More...
|
|
void | LoadData () |
| load the tile data
|
|
void | SetTileInfo (unsigned short info, unsigned int posX, unsigned int posY) |
| set the tile info More...
|
|
void | setScroll (int scrollX, int scrollY) |
| set the scrolling values of the layer (used by virtual screen) More...
|
|
| Abstract2DLayer (const kstl::string &name, DECLARE_CLASS_NAME_TREE_ARG) |
| constructor More...
|
|
void | TravCull (TravState *state) override |
| call cull process for this node and all sons at visible positions More...
|
|
bool | operator< (Scene3D const &A) const |
| overload operator < for comparison
|
|
void | NotifyUpdate (const unsigned int) override |
| to be done when changing More...
|
|
virtual bool | removeLight (CoreModifiable *light) |
| remove a light return true if light was attached to this scene More...
|
|
virtual void | addLight (CoreModifiable *light) |
| add a light More...
|
|
virtual bool | hasLight (CoreModifiable *light) |
| true is has a light More...
|
|
| DECLARE_DECORABLE_2_PARAMS (bool, Cull, Node3D, TravState *, unsigned int) |
|
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 | 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...
|
|
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
|
|
Obsolete 2D Layer.
2 Now use UI2DLayer insteed.