|
bool | PreDraw (TravState *) override |
| initialise pre draw method More...
|
|
bool | PostDraw (TravState *travstate) override |
| initialise PostDraw method More...
|
|
| Material (const kstl::string &name, DECLARE_CLASS_NAME_TREE_ARG) |
| constructor More...
|
|
void | DoPreDraw (TravState *travstate) override |
| pre draw method More...
|
|
void | DoPostDraw (TravState *travstate) override |
| post draw method More...
|
|
void | SetAmbientColor (kfloat r, kfloat g, kfloat b, kfloat a=KFLOAT_CONST(1.0f)) |
| set the ambient color More...
|
|
void | GetAmbientColor (kfloat &r, kfloat &g, kfloat &b) |
| get the ambient color More...
|
|
void | SetDiffuseColor (kfloat r, kfloat g, kfloat b, kfloat a=KFLOAT_CONST(-1.0f)) |
| set the diffuse color More...
|
|
void | GetDiffuseColor (kfloat &r, kfloat &g, kfloat &b) |
| get the diffuse color More...
|
|
void | SetSpecularColor (kfloat r, kfloat g, kfloat b, kfloat a=KFLOAT_CONST(1.0f)) |
| set the specular color More...
|
|
void | GetSpecularColor (kfloat &r, kfloat &g, kfloat &b) |
| get the specular color More...
|
|
void | SetEmissionColor (kfloat r, kfloat g, kfloat b, kfloat a=KFLOAT_CONST(1.0f)) |
| set the emissive color More...
|
|
void | GetEmissionColor (kfloat &r, kfloat &g, kfloat &b) |
| get the emissive color More...
|
|
void | GetShininess (kfloat &s) |
| get the shininess property More...
|
|
bool | Equal (const CoreModifiable &other) override |
| compare with another coreModifiable More...
|
|
virtual void | DoDraw (TravState *travstate) |
| draw method More...
|
|
void | CheckPostDraw (TravState *travstate) |
| check before calling corresponding DoPredraw More...
|
|
virtual bool | BBoxUpdate (kdouble time) |
| update the bounding box More...
|
|
bool | addItem (const CMSP &item, ItemPosition pos=Last) override |
| add item in scene tree More...
|
|
bool | removeItem (const CMSP &item) override |
| remove item in scene tree More...
|
|
virtual void | GetGlobalPosition (Matrix3x4 *pLocalToGlobal, kfloat &x, kfloat &y, kfloat &z) |
| get the global position of the drawable More...
|
|
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 void | addUser (CoreModifiable *user) |
| add the given parent to list
|
|
virtual void | removeUser (CoreModifiable *user) |
| remove user (parent)
|
|
|
enum | BlendFuncSource |
| list of blend function source
|
|
enum | BlendFuncDest |
| list of blend function destination
|
|
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
|
|
maInt | mFacing |
| 1 front, 2 back, 3 both
|
|
maInt | mBlendFuncSource |
| blend function source
|
|
maInt | mBlendFuncDest |
| blend function destination
|
|
maBool | mBlendEnabled |
| TRUE if the blend is enabled.
|
|
maBool | mMaterialColorEnabled |
| TRUE if the material color is enabled.
|
|
maVect4DF | mAmbientColor |
| ambient color
|
|
maVect4DF | mDiffuseColor |
| diffuse color
|
|
maVect4DF | mSpecularColor |
| specular color
|
|
maVect4DF | mEmissionColor |
| emission color
|
|
maFloat | mShininess |
| shininess
|
|
maFloat | mTransparency |
| transparency
|
|
OpenGL implementation of Material.