|
bool | SetActive (TravState *state) |
| return true if camera was activated else do not render camera More...
|
|
void | Release (TravState *state) |
| release the camera
|
|
void | SetViewport (kfloat vpminx, kfloat vpminy, kfloat vpsx, kfloat vpsy) |
| set the viewport More...
|
|
void | SetPosition (kfloat x, kfloat y, kfloat z) |
| set the position of the camera More...
|
|
void | GetPosition (kfloat &x, kfloat &y, kfloat &z) |
| get the position of the camera More...
|
|
void | SetViewVector (kfloat x, kfloat y, kfloat z) |
| set the view factor More...
|
|
void | GetViewVector (kfloat &x, kfloat &y, kfloat &z) |
| get the view factor More...
|
|
void | SetUpVector (kfloat x, kfloat y, kfloat z) |
| set the position of the up vector More...
|
|
void | GetUpVector (kfloat &x, kfloat &y, kfloat &z) |
| get the up vector More...
|
|
void | GetNodeBoundingBox (Point3D &pmin, Point3D &pmax) const override |
| special case for camera has we want it to be init even if have no bounding box
|
|
void | SetNearAndFar (kfloat znear, kfloat zfar) |
| set the zNear and zFar values More...
|
|
void | SetClearColor (kfloat r, kfloat g, kfloat b, kfloat a=1.0f) |
| set the clear color More...
|
|
bool | IsActive () |
| check if the camera is active More...
|
|
bool | AllVisible () |
| check if the camera is in All Visible mode More...
|
|
virtual void | InitCullingObject (CullingObject *obj) |
| initialize the culling on an object More...
|
|
virtual void | getRay (const kfloat &ScreenX, const kfloat &ScreenY, Point3D &RayOrigin, Vector3D &RayDirection) |
| get the ray from a pixel More...
|
|
virtual bool | Project (kfloat &, kfloat &, Point3D) |
| project given point 3D using camera projection
|
|
RenderingScreen * | getRenderingScreen () |
| link to the rendering screen
|
|
| 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 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
|
|
Abstract class, special Node3D to manage a camera ( viewpoint in the scene )
reference on the rendering screen
Attributes
Key : RenderingScreen (Init attribute)
Key : AllVisible
- Type : bool
- Default Value : false
Camera all visible(no cull)
Key : AspectRatio
- Type : float
- Default Value : 0.000000
aspect ration of the camera
Key : Brightness
- Type : float
- Default Value : 0.000000
Camera brightness, change rendering screen brightness.
Key : CameraIsEnabled
- Type : bool
- Default Value : true
Disable or Enable camera.
Key : ClearColor
- Type : array [ 4 ]
- Default Value : {0.800000,0.800000,1.000000,1.000000}
clear color of the camera
Key : ClearColorBuffer
- Type : bool
- Default Value : true
should clear color buffer
Key : ClearStencilBuffer
- Type : bool
- Default Value : false
should clear stencil buffer
Key : ClearZBuffer
- Type : bool
- Default Value : true
should clear zBuffer
Key : FarPlane
- Type : float
- Default Value : 40.000000
zFar value
Key : NearPlane
- Type : float
- Default Value : 0.100000
zNear value
Key : Position
- Type : array [ 3 ]
- Default Value : {0.000000,0.000000,0.000000}
position of the camera
Key : Priority
- Type : uint
- Default Value : 0
Camera priority.
Key : TouchControlled
- Type : bool
- Default Value : false
Key : UpVector
- Type : array [ 3 ]
- Default Value : {0.000000,0.000000,1.000000}
up vector of the camera
Key : VerticalFOV
- Type : float
- Default Value : 45.000000
vertical FOV of the camera
Key : ViewVector
- Type : array [ 3 ]
- Default Value : {1.000000,0.000000,0.000000}
direction of the camera
Key : ViewportMinX
- Type : float
- Default Value : 0.000000
coordinate on x axis of the min point of the viewport
Key : ViewportMinY
- Type : float
- Default Value : 0.000000
coordinate on y axis of the min point of the viewport
Key : ViewportSizeX
- Type : float
- Default Value : 1.000000
width of the viewport
Key : ViewportSizeY
- Type : float
- Default Value : 1.000000
height of the viewport
Inherited Attributes
Inherited Methods