OptimizedPolyList Class Reference#include <optimizedPolyList.h>
Inheritance diagram for OptimizedPolyList:
[legend]List of all members.
Detailed Description
A concrete, renderable PolyList.
This class is used to store geometry from a PolyList query.
It allows you to render this data, as well.
- See also:
- AbstractPolyList
|
Public Types |
| typedef Vector< PlaneF > | PlaneList |
| typedef Vector< Vertex > | VertexList |
| typedef Vector< Poly > | PolyList |
| typedef Vector< U32 > | IndexList |
| typedef Vector< Edge > | EdgeList |
| | NonShared = 0 |
| | Concave |
| | Convex |
| enum | {
NonShared = 0,
Concave,
Convex
} |
Public Member Functions |
| const TriangleLighting * | getTriangleLighting (const U32 index) |
| | OptimizedPolyList () |
| | ~OptimizedPolyList () |
| void | clear () |
| U32 | addPoint (const Point3F &p) |
| | Adds a point to the poly list, and returns an ID number for that point.
|
| U32 | addPoint (const Point3F &p, const Point2F &uv0, const Point3F &normal=Point3F(0.0f, 0.0f, 1.0f), const Point2F &uv1=Point2F(0.0f, 0.0f)) |
| U32 | addPoint (const Vertex &vert) |
| U32 | addPlane (const PlaneF &plane) |
| | Adds a plane to the poly list, and returns an ID number for that point.
|
| void | begin (BaseMatInstance *material, U32 surfaceKey) |
| | Start a surface.
|
| void | plane (U32 v1, U32 v2, U32 v3) |
| | Indicate the plane of the surface.
|
| void | plane (const PlaneF &p) |
| | Indicate the plane of the surface.
|
| void | plane (const U32 index) |
| | Indicate the plane of the surface.
|
| void | vertex (U32 vi) |
| | Reference a vertex which is in this surface.
|
| void | vertex (const Point3F &p) |
| void | vertex (const Point3F &p, const Point2F &uv0, const Point3F &normal=Point3F(0.0f, 0.0f, 1.0f), const Point2F &uv1=Point2F(0.0f, 0.0f)) |
| void | end () |
| | Mark the end of a surface.
|
| bool | isEqual (const Point3F &a, const Point3F &b) |
| bool | isEqual (const Point2F &a, const Point2F &b) |
| void | copyPolyToList (OptimizedPolyList *target, U32 pdx) const |
| void | copyPolyToList (OptimizedPolyList *target, const FullPoly &poly) const |
| FullPoly | getFullPoly (U32 pdx) |
| bool | isEmpty () const |
| | Are we empty of data?
|
Public Attributes |
| Vector< TriangleLighting > | mTriangleLightingList |
| PolyList | mPolyList |
| VertexList | mVertexList |
| IndexList | mIndexList |
| PlaneList | mPlaneList |
| EdgeList | mEdgeList |
| PlaneList | mPolyPlaneList |
Protected Member Functions |
| const PlaneF & | getIndexedPlane (const U32 index) |
| | A helper function to convert a plane index to a PlaneF structure.
|
Classes |
| struct | Edge |
| struct | FullPoly |
| struct | Poly |
| struct | TriangleLighting |
| struct | Vertex |
Member Typedef Documentation
Member Enumeration Documentation
Constructor & Destructor Documentation
| OptimizedPolyList::OptimizedPolyList |
( |
|
) |
|
| OptimizedPolyList::~OptimizedPolyList |
( |
|
) |
|
Member Function Documentation
| void OptimizedPolyList::clear |
( |
|
) |
|
| U32 OptimizedPolyList::addPoint |
( |
const Point3F & |
p |
) |
[virtual] |
Adds a point to the poly list, and returns an ID number for that point.
Implements AbstractPolyList.
| U32 OptimizedPolyList::addPoint |
( |
const Vertex & |
vert |
) |
|
| U32 OptimizedPolyList::addPlane |
( |
const PlaneF & |
plane |
) |
[virtual] |
Adds a plane to the poly list, and returns an ID number for that point.
Implements AbstractPolyList.
Start a surface.
- Parameters:
-
| material | A material ID for this surface. |
| surfaceKey | A key value to associate with this surface. |
Implements AbstractPolyList.
| void OptimizedPolyList::plane |
( |
U32 |
v1, |
|
|
U32 |
v2, |
|
|
U32 |
v3 | |
|
) |
| | [virtual] |
| void OptimizedPolyList::plane |
( |
const PlaneF & |
p |
) |
[virtual] |
| void OptimizedPolyList::plane |
( |
const U32 |
index |
) |
[virtual] |
| void OptimizedPolyList::vertex |
( |
U32 |
vi |
) |
[virtual] |
| void OptimizedPolyList::end |
( |
|
) |
[virtual] |
| bool OptimizedPolyList::isEmpty |
( |
|
) |
const [virtual] |
| const PlaneF& OptimizedPolyList::getIndexedPlane |
( |
const U32 |
index |
) |
[protected, virtual] |
Member Data Documentation
|