#include <GhoulPrimitives.h>


Public Member Functions | |
| Loft () | |
| construction | |
| virtual | ~Loft () |
| virtual void | Update (Drawer &drawer, bool bHasNormals=true, bool bHasTexCoords=true) |
| (abstract) Base Class with utility functions | |
| void | ClearBasePoints () |
| void | SetBasePoint (size_t i, kVector3 p, kVector3 n=Vector3::ZERO, kReal u=0) |
| void | AddBasePoint (kVector3 p, kVector3 n=Vector3::ZERO, kReal u=0) |
| void | ClearPathPoints () |
| void | SetPathPoint (size_t i, kVector3 p, kReal uBias=0, kReal v=0, kVector3 scale=Vector3::UNIT_SCALE, kQuaternion rot=Quaternion::IDENTITY) |
| void | AddPathPoint (kVector3 p, kReal uBias=0, kReal v=0, kVector3 scale=Vector3::UNIT_SCALE, kQuaternion rot=Quaternion::IDENTITY) |
Public Attributes | |
| bool | mBase_bAutoNormal |
| bool | mUseScale |
| default = true, if (normal = zero) normal = norm(basepoint) | |
| bool | mUseRot |
| default = true | |
| bool | mAutoBackSide |
| default = true | |
| bool | mSphericalAutoNormals |
| default = false, add inverted base form (with inverted normals) | |
| Vector3 | mSphericalAutoNormals_Center |
| default = false, normals generated from normalized "absolute" position, used for sphere | |
Private Attributes | |
| std::vector< BasePoint > | mlBasePoint |
| std::vector< PathPoint > | mlPathPoint |
Classes | |
| class | BasePoint |
| default = ZERO More... | |
| class | PathPoint |
Definition at line 172 of file GhoulPrimitives.h.
| Loft::Loft | ( | ) |
construction
Definition at line 13 of file GhoulPrimitivesLoft.cpp.
References mAutoBackSide, mBase_bAutoNormal, mSphericalAutoNormals, mSphericalAutoNormals_Center, mUseRot, mUseScale, and PROFILE.
| Loft::~Loft | ( | ) | [virtual] |
Definition at line 22 of file GhoulPrimitivesLoft.cpp.
| void Loft::Update | ( | Drawer & | drawer, | |
| bool | bHasNormals = true, |
|||
| bool | bHasTexCoords = true | |||
| ) | [virtual] |
(abstract) Base Class with utility functions
interface
Reimplemented from GhoulPrimitive::Primitive.
Definition at line 26 of file GhoulPrimitivesLoft.cpp.
References GhoulPrimitive::Drawer::AddIndex(), GhoulPrimitive::Drawer::AddVertex(), GhoulPrimitive::Drawer::Finish(), GhoulPrimitive::kGeometryChange_Seldom, GhoulPrimitive::kOpType_TRIANGLE_LIST, mAutoBackSide, mlBasePoint, mlPathPoint, mSphericalAutoNormals, mSphericalAutoNormals_Center, mUseRot, mUseScale, GhoulPrimitive::Loft::BasePoint::n, GhoulPrimitive::Loft::BasePoint::p, GhoulPrimitive::Loft::PathPoint::p, GhoulPrimitive::Drawer::Prepare(), PROFILE, GhoulPrimitive::Loft::PathPoint::rot, GhoulPrimitive::Loft::PathPoint::scale, GhoulPrimitive::Loft::BasePoint::u, GhoulPrimitive::Loft::PathPoint::uBias, and GhoulPrimitive::Loft::PathPoint::v.
Referenced by GhoulPrimitive::OgreCone::OgreCone(), and GhoulPrimitive::OgreEllipsoid::OgreEllipsoid().
| void Loft::ClearBasePoints | ( | ) |
Definition at line 103 of file GhoulPrimitivesLoft.cpp.
References mBase_bAutoNormal, mlBasePoint, and PROFILE.
Referenced by AddBasePoint().
Definition at line 99 of file GhoulPrimitivesLoft.cpp.
References mlBasePoint, PROFILE, and SetBasePoint().
Referenced by GhoulPrimitive::Cone::SetParams(), and GhoulPrimitive::Ellipsoid::SetParams().
| void Loft::ClearPathPoints | ( | ) |
| void Loft::SetPathPoint | ( | size_t | i, | |
| kVector3 | p, | |||
| kReal | uBias = 0, |
|||
| kReal | v = 0, |
|||
| kVector3 | scale = Vector3::UNIT_SCALE, |
|||
| kQuaternion | rot = Quaternion::IDENTITY | |||
| ) |
Definition at line 119 of file GhoulPrimitivesLoft.cpp.
References mlPathPoint, and PROFILE.
Referenced by AddPathPoint().
| void Loft::AddPathPoint | ( | kVector3 | p, | |
| kReal | uBias = 0, |
|||
| kReal | v = 0, |
|||
| kVector3 | scale = Vector3::UNIT_SCALE, |
|||
| kQuaternion | rot = Quaternion::IDENTITY | |||
| ) |
Definition at line 115 of file GhoulPrimitivesLoft.cpp.
References mlPathPoint, PROFILE, and SetPathPoint().
Referenced by GhoulPrimitive::Cone::SetParams(), and GhoulPrimitive::Ellipsoid::SetParams().
default = true, if (normal = zero) normal = norm(basepoint)
Definition at line 196 of file GhoulPrimitives.h.
default = false, add inverted base form (with inverted normals)
Definition at line 199 of file GhoulPrimitives.h.
Referenced by Loft(), GhoulPrimitive::Ellipsoid::SetParams(), and Update().
default = false, normals generated from normalized "absolute" position, used for sphere
Definition at line 200 of file GhoulPrimitives.h.
Referenced by Loft(), GhoulPrimitive::Ellipsoid::SetParams(), and Update().
std::vector<BasePoint> GhoulPrimitive::Loft::mlBasePoint [private] |
Definition at line 224 of file GhoulPrimitives.h.
Referenced by AddBasePoint(), ClearBasePoints(), SetBasePoint(), and Update().
std::vector<PathPoint> GhoulPrimitive::Loft::mlPathPoint [private] |
Definition at line 225 of file GhoulPrimitives.h.
Referenced by AddPathPoint(), ClearPathPoints(), SetPathPoint(), and Update().
1.5.6