Mondschein Engine
0.3.0
|
This class provides some standard creation functions. More...
#include <types.h>
Static Public Member Functions | |
static scene::Camera_p | create_camera () |
Create a camera scenenode. More... | |
static scene::Camera_p | create_camera (const std::string &_id, float64 _v, float64 _a, float64 _n, float64 _f, float64 _x, float64 _y, float64 _w, float64 _h) |
Create a ca,era. More... | |
static scene::Camera_p | create_camera (scene::Camera_c _c) |
Create a camera. More... | |
static scene::Light_p | create_light () |
Create a light. More... | |
static scene::Light_p | create_light (const std::string &_id, const Eigen::Vector4d &_a, const Eigen::Vector4d &_d, const Eigen::Vector4d &_s, const Eigen::Vector4d &_p, const Eigen::Vector4d &_sd, float64 _se, float64 _sc, float64 _ca, float64 _la, float64 _qa, uint8 _l) |
Create a light. More... | |
static scene::Light_p | create_light (scene::Light_c _l) |
Create a light. More... | |
static scene::Material_p | create_material () |
Create a colour material. More... | |
static scene::Material_p | create_material (const std::string &_id, const Eigen::Vector4d &_a, const Eigen::Vector4d &_d, const Eigen::Vector4d &_s, const Eigen::Vector4d &_e, float64 _sh) |
Create a colour material. More... | |
static scene::Material_p | create_material (scene::Material_c _m) |
Create a colour material. More... | |
static scene::Mesh_p | create_mesh () |
Create a mesh. More... | |
static scene::Mesh_p | create_mesh (const std::string &_id, const std::vector< Eigen::Vector4d > &_v, const std::vector< Eigen::Vector3d > &_vn, const std::vector< Eigen::Vector4d > &_vt, const std::vector< Eigen::Vector4d > &_vc) |
Create a mesh. More... | |
static scene::Mesh_p | create_mesh (scene::Mesh_c _m) |
Create a mesh. More... | |
static scene::Pose_p | create_pose () |
Create a pose. More... | |
static scene::Pose_p | create_pose (const std::string &_id, const Eigen::Matrix4d &_m) |
Create a pose. More... | |
static scene::Pose_p | create_pose (scene::Pose_c _p) |
Create a pose. More... | |
static scene::Texture_p | create_texture () |
Create a texture. More... | |
static scene::Texture_p | create_texture (const std::string &_id, uint32 _w, uint32 _h, uint8 _bpp, bool _f, texture_filtering_e _tf, uint8 _af, uint8 _tu, const std::vector< uint8 > &_d) |
Create a texture. More... | |
static scene::Texture_p | create_texture (scene::Texture_c _t) |
Create a texture. More... | |
static scene::Scenegraph_p | create_scenegraph () |
Create a scenegraph. More... | |
static scene::Scenegraph_p | create_scenegraph (const std::vector< scene::Scenenode_c > &_n, const boost::adjacency_list<> &_e) |
Create a scenegraph. More... | |
static scene::Scenegraph_p | create_scenegraph (scene::Scenegraph_c _sg) |
Create a scenegraph. More... | |
static math::Beziercurve_p | create_beziercurve () |
Create a bezier curve. More... | |
static math::Beziercurve_p | create_beziercurve (const std::vector< Eigen::Vector4d > &_p) |
Create a bezier curve. More... | |
static math::Beziercurve_p | create_beziercurve (math::Beziercurve_c _c) |
Create a bezier curve. More... | |
static math::Bezierpatch_p | create_bezierpatch () |
Create a bezier patch. More... | |
static math::Bezierpatch_p | create_bezierpatch (const std::vector< math::Beziercurve_p > &_c) |
Create a bezier patch. More... | |
static math::Bezierpatch_p | create_bezierpatch (math::Bezierpatch_c _p) |
Create a bezier patch. More... | |
static math::NURBScurve_p | create_nurbscurve () |
Create a NURBS curve. More... | |
static math::NURBScurve_p | create_nurbscurve (uint32 _d, const std::vector< Eigen::Vector4d > &_p, bool _cl) |
Create a NURBS curve. More... | |
static math::NURBScurve_p | create_nurbscurve (math::NURBScurve_c _c) |
Create a NURBS curve. More... | |
static math::NURBSpatch_p | create_nurbspatch () |
Create a NURBS patch. More... | |
static math::NURBSpatch_p | create_nurbspatch (uint32 _d, const std::vector< math::NURBScurve_p > &_c, bool _cl) |
Create a NURBS patch. More... | |
static math::NURBSpatch_p | create_nurbspatch (math::NURBSpatch_c _p) |
Create a NURBS patch. More... | |
This class provides some standard creation functions.
The Core class is a convenience class that provides a set of useful functions to ease scenenode and other object creation. Supported classes are:
Camera
Light
Material
Mesh
Pose
Texture
Scenegraph
Beziercurve
Bezierpatch
NURBScurve
NURBSpatch
|
static |
Create a bezier curve.
This function creates an empty bezier curve object.
Definition at line 149 of file mondschein_core.cpp.
|
static |
Create a bezier curve.
_p | the control points |
This function creates a bezier curve with control points _m and degree _m.size()-1.
Definition at line 154 of file mondschein_core.cpp.
|
static |
Create a bezier curve.
_c | the bezier curve to copy |
Thhis function creates a bezier curve object which is an exact copy of _c.
Definition at line 159 of file mondschein_core.cpp.
|
static |
Create a bezier patch.
This function creates an empty bezier patch.
Definition at line 164 of file mondschein_core.cpp.
|
static |
Create a bezier patch.
_c | the control curves |
This function creates a bezier patch objects with control curves _c and degree _c.size()-1.
Definition at line 169 of file mondschein_core.cpp.
|
static |
Create a bezier patch.
_p | the bezier patch to copy |
This function creates a bezier patch which is an exact copy of _p.
Definition at line 174 of file mondschein_core.cpp.
|
static |
Create a camera scenenode.
This function creates a standard camera scenenode object and returns it.
Definition at line 36 of file mondschein_core.cpp.
|
static |
Create a ca,era.
_v | the field of view in Y-direction |
_a | Tte aspect ratio |
_n | The near clipping plane |
_f | the far clipping plane |
_x | the viewport X coordinate |
_y | the viewport Y coordinate |
_w | the viewport width |
_w | the viewport height |
This function constructs a custom camera and returns its object.
Definition at line 41 of file mondschein_core.cpp.
|
static |
Create a camera.
_c | the camera to copy |
This function constructs a camera that is a copy of _c and returns its object.
Definition at line 47 of file mondschein_core.cpp.
|
static |
Create a light.
This function creates a light scene nodes according to the standard scenenode defaults.
Definition at line 52 of file mondschein_core.cpp.
|
static |
Create a light.
_a | the ambient light colour |
_d | the diffuse light colour |
_s | the specular light colour |
_p | the light position |
_sd | the spot light direction |
_se | the spot light exponent |
_sc | the spot light cutoff |
_ca | the constant light attenuation |
_la | the linear light attenuation |
_qa | the quadratic light attenuation |
_l | the light unit |
This function creates a light scenenode according to the given parameters.
Definition at line 57 of file mondschein_core.cpp.
|
static |
Create a light.
_l | the light scenenode to copy |
This function creates a light scenenode which is an exact copy of _l.
Definition at line 64 of file mondschein_core.cpp.
|
static |
Create a colour material.
This function creates a colour material scenenode according to the standard scenenode defaults.
Definition at line 69 of file mondschein_core.cpp.
|
static |
Create a colour material.
_a | the ambient material colour |
_d | the diffuse material colour |
_s | the specular material colour |
_e | the pseudo-light emission colour |
_sh | the material shininess |
This function creates a colour material according to the given parameters.
Definition at line 74 of file mondschein_core.cpp.
|
static |
Create a colour material.
_m | the colour material scenenode to copy |
This function creates a colour material which is an exact copy of _m.
Definition at line 80 of file mondschein_core.cpp.
|
static |
Create a mesh.
This function creates a mesh scenenode according to the scenenode defaults.
Definition at line 85 of file mondschein_core.cpp.
|
static |
Create a mesh.
_v | the vertex position array |
_vn | the vertex normal array |
_vt | the vertex texture coordinates array |
_vc | the vertex colour array |
This function creates a mesh scenenode according to the given parameters.
Definition at line 90 of file mondschein_core.cpp.
|
static |
Create a mesh.
_m | the mesh scenenode to copy |
This function creates a mesh scenenode which is an exact copy of _m.
Definition at line 97 of file mondschein_core.cpp.
|
static |
Create a NURBS curve.
This function creates an empty NURBS curve object with degree 1. After setting control points the knot vector must be calculated.
Definition at line 179 of file mondschein_core.cpp.
|
static |
Create a NURBS curve.
_d | the curve degree |
_p | the control points |
_cl | the knot vector calculation option (true for chord length, false for uniform length) |
This function creates a NURBS curve object with control points _p and degree _d and calculates the knot vector according to _cl.
Definition at line 184 of file mondschein_core.cpp.
|
static |
Create a NURBS curve.
_c | the NURBS curve to copy |
This function creates a NURBS curve object which is an exact copy of _c.
Definition at line 191 of file mondschein_core.cpp.
|
static |
Create a NURBS patch.
This function creates an empty NURBS patch object with degree 1. After setting control curves the knot vector must be calculated.
Definition at line 196 of file mondschein_core.cpp.
|
static |
Create a NURBS patch.
_d | the patch degree |
_c | the control curves |
_cl | the knot vector calculation option (true for chord length, false for uniform length) |
This function creates a NURBS patch object with control curves _c and degree _d and calculates the knot vector according to _cl.
Definition at line 201 of file mondschein_core.cpp.
|
static |
Create a NURBS patch.
_p | the NURBS patch to copy |
This function creates a NURBS patch object which is an exact copy of _p.
Definition at line 208 of file mondschein_core.cpp.
|
static |
Create a pose.
This function creates a pose scenenode according to the scenenode defaults.
Definition at line 102 of file mondschein_core.cpp.
|
static |
Create a pose.
_m | the pose matrix in row-major order |
This function creates a pose scenenode with the pose matrix defines by _m.
Definition at line 107 of file mondschein_core.cpp.
|
static |
Create a pose.
_p | the pose scenenode to be copied |
This function creates a pose scenenode which is the exact copy of _p.
Definition at line 112 of file mondschein_core.cpp.
|
static |
Create a scenegraph.
This function creates an empty scenegraph according to the scenegraph defaults.
Definition at line 133 of file mondschein_core.cpp.
|
static |
Create a scenegraph.
_n | the scenegraph nodes |
_e | the scenegraph edges |
This function creates a scenegraph according to the function parameters.
Definition at line 138 of file mondschein_core.cpp.
|
static |
Create a scenegraph.
_sg | the scenegraph to be copied |
This function creates a scenegraph which is an exact copy of _sg.
Definition at line 144 of file mondschein_core.cpp.
|
static |
Create a texture.
This function creates an empty texture scenenode according to the sceneode defaults.
Definition at line 117 of file mondschein_core.cpp.
|
static |
Create a texture.
_w | the texture width |
_h | the texture height |
_bpp | the texture depth |
_f | the texture format |
_tf | the texture filter |
_af | the anisotropic texture filter |
_tu | the texture unit |
_d | the texture pixel data |
This function creates a texture scenenode according to the function parameters.
Definition at line 122 of file mondschein_core.cpp.
|
static |
Create a texture.
_t | the texture scenenode to copy |
This function creates a texture scenenode which is the exact copy of _t.
Definition at line 128 of file mondschein_core.cpp.