#include <Quadric.h>

Public Member Functions | |
| Quadric (void) | |
| virtual | ~Quadric (void) |
| virtual Mat4 | findSurfaceGlobal (const Vec3 &global, int iterations=10) const =0 |
| virtual Mat4 | findSurfaceLocal (const Vec3 &local, int iterations=10) const =0 |
| const Vec4 & | getSize (void) const |
| void | setSize (const Vec4 &v, bool send=true) |
| const Vec2 & | getExponents (void) const |
| void | setExponents (const Vec2 &v, bool send=true) |
| const Vec2 & | getRoundness (void) const |
| void | setRoundness (const Vec2 &v, bool send=true) |
| const Vec3 & | getSubdivisions (void) const |
| void | setSubdivisions (const Vec3 &v, bool send=true) |
| const bool | getCorrectUV (void) const |
| void | setCorrectUV (bool state, bool send=true) |
Protected Member Functions | |
| double | cvn (double v, double n) |
| double | sgnf (double x) |
| double | svn (double v, double n) |
Protected Attributes | |
| Vec4 | m_size |
| Vec2 | m_exponents |
| Scaling factors for x, y, and z and optional w component for toroids. | |
| Vec2 | m_roundness |
| North-South/East-West Roundness/Squareness Factors. | |
| Vec3 | m_subdiv |
| bool | m_correctUV |
| Number of segments. | |
Definition at line 16 of file Quadric.h.
| RenderTools::Quadric::Quadric | ( | void | ) |
| RenderTools::Quadric::~Quadric | ( | void | ) | [virtual] |
Definition at line 27 of file Quadric.cpp.
| double RenderTools::Quadric::cvn | ( | double | v, | |
| double | n | |||
| ) | [protected] |
Definition at line 45 of file Quadric.cpp.
| virtual Mat4 RenderTools::Quadric::findSurfaceGlobal | ( | const Vec3 & | global, | |
| int | iterations = 10 | |||
| ) | const [pure virtual] |
Implemented in RenderTools::Ellipsoid.
| virtual Mat4 RenderTools::Quadric::findSurfaceLocal | ( | const Vec3 & | local, | |
| int | iterations = 10 | |||
| ) | const [pure virtual] |
Implemented in RenderTools::Ellipsoid.
| const bool RenderTools::Quadric::getCorrectUV | ( | void | ) | const |
Definition at line 95 of file Quadric.cpp.
| const Vec2 & RenderTools::Quadric::getExponents | ( | void | ) | const |
Definition at line 68 of file Quadric.cpp.
| const Vec2 & RenderTools::Quadric::getRoundness | ( | void | ) | const |
Definition at line 77 of file Quadric.cpp.
| const Vec4 & RenderTools::Quadric::getSize | ( | void | ) | const |
Definition at line 59 of file Quadric.cpp.
| const Vec3 & RenderTools::Quadric::getSubdivisions | ( | void | ) | const |
Definition at line 86 of file Quadric.cpp.
| void RenderTools::Quadric::setCorrectUV | ( | bool | state, | |
| bool | send = true | |||
| ) |
| void RenderTools::Quadric::setExponents | ( | const Vec2 & | v, | |
| bool | send = true | |||
| ) |
| void RenderTools::Quadric::setRoundness | ( | const Vec2 & | v, | |
| bool | send = true | |||
| ) |
| void RenderTools::Quadric::setSize | ( | const Vec4 & | v, | |
| bool | send = true | |||
| ) |
| void RenderTools::Quadric::setSubdivisions | ( | const Vec3 & | v, | |
| bool | send = true | |||
| ) |
| double RenderTools::Quadric::sgnf | ( | double | x | ) | [protected] |
| double RenderTools::Quadric::svn | ( | double | v, | |
| double | n | |||
| ) | [protected] |
Definition at line 54 of file Quadric.cpp.
bool RenderTools::Quadric::m_correctUV [protected] |
Vec2 RenderTools::Quadric::m_exponents [protected] |
Vec2 RenderTools::Quadric::m_roundness [protected] |
Vec4 RenderTools::Quadric::m_size [protected] |
Vec3 RenderTools::Quadric::m_subdiv [protected] |
1.5.8