vrecko
virtual reality framework
|
#include <PointShell_Object_Data_LOD_Builder.h>
Public Member Functions | |
PointShell_Object_Data_LOD_Builder () | |
~PointShell_Object_Data_LOD_Builder () | |
void | Clear () |
string | getStatusResult () |
int | getZeroLevelSize () |
int | getPolygonsCount () |
void | setVerticesCount (int count) |
void | setPolygonsCount (int count) |
void | setEdgesCount (int count) |
void | setParameters (float lodEI, float lodEDI, float lodVI) |
void | setMovableVertices (bool value) |
void | setLevelZeroSize (int size, float percentage) |
void | setFileName (string name) |
void | setMaxLevels (int levels) |
void | setMaxChildrens (int maxChild) |
void | setMinimumVertices (int minimum) |
void | writeVertex (int seqnum, osg::Vec3f pos, osg::Vec3f norm) |
void | writeVertex (int seqnum, osg::Vec3f pos) |
void | writeEdge (int seqnum, int vertexPos1, int vertexPos2) |
void | writeEdge (int seqnum, int vertexPos1, int vertexPos2, int polygon1, int polygon2) |
void | writePolygon (int seqnum, int v1, int v2, int v3) |
void | printOutQueue () |
void | printOutStatus () |
void | printOutVerbouseStatus () |
void | computeRadiusOfBoundingSpheres () |
void | mergeLevels () |
void | finishStructureBuild () |
int | subdivideMesh () |
int | buildReductionLevelStructure () |
int | getMaxLvl () |
vector< VLOD > | getLvlVertices (int lvl) |
vector< VLOD > | getVertices (int seqNum) |
vector< VLOD > | getRoots () |
vector < PointShell_Object_Data_Geometry::V > | getVertices () |
vector < PointShell_Object_Data_Geometry::E > | getEdges () |
vector < PointShell_Object_Data_Geometry::P > | getPolygons () |
PointShell_Object_Data_Geometry::V | getVertex (int seqnum) |
Public Member Functions inherited from APSpacePartitioning::PointShell_Object_Data_Geometry | |
PointShell_Object_Data_Geometry () | |
virtual | ~PointShell_Object_Data_Geometry () |
Protected Member Functions | |
void | handleEdges (int polygon) |
int_3 | getEdges (int polygon) |
void | calculateEdgesLength () |
void | calculateEdgeLength (int edge) |
void | calculateEdgesImportance () |
void | calculateEdgeImportance (int seqnum) |
void | calculateEdgesCost () |
void | calculateEdgeCost (int seqnum) |
void | calculateNormalOfPolygons () |
void | calculateNormalOfPolygon (int seqnum) |
void | calculateVerticesNormalAndImporatance () |
void | calculateVertexNormalAndImportance (int seqnum) |
void | calculateNewVertexPosition (int vertexToSet, int vt[3]) |
void | cleanVertexEdges () |
void | removeRequiredEdges (int edge) |
void | setVertexVisible (int vertex, bool visibility) |
void | setPolygonVisible (int polygon, bool visibility) |
void | setEdgeVisible (int edge, bool visibility) |
void | addRequiredEdge (int edge, int reqEdge) |
void | setValidEdges () |
void | setValidEdge (int edge) |
void | setValidVertices () |
void | setValidVertex (int vertex, bool value) |
float | getAngle (osg::Vec3f vec1, osg::Vec3f vec2) |
list< int > | getSame (int *a, int *b) |
bool | equalArrays (int a1[], int a2[], int size) |
bool | legalToRemoveEdge (int edge) |
bool | polygonHaveVertex (int polygon, int vertex) |
bool | polygonHaveVertices (int polygon, int v1, int v2) |
bool | have2Polygons2OrMoreVetrticesSame (int p1, int p2) |
bool | edgesEqualByVertices (int e1, int e2) |
int | getSameEdge (int p1, int p2) |
list< int > | getSameEdges (int p1, int p2) |
bool | polygonsEqualsByVertices (int p1, int p2) |
int | getThirdVertex (int polygon, int v1, int v2) |
pair< int, int > | getOkAndChangeEdges (int polygon, int v1, int edge) |
void | computeVertexLevels () |
void | addVerticesLeafsAndChilds () |
float | edgeCost (int edge) |
float | edgeLength (int edge) |
float | edgeImportance (int edge) |
float | vertexImportance (int vertex) |
void | printOutList (string log, list< int > edgesList) |
void | printOutEdge (string log, int edge) |
void | printOutVertex (string log, int vertex) |
void | printOutPolygon (string log, int polygon) |
string | intToStr (int number) |
string | floatToTimeString (float time) |
void | buildQueue (bool verbouse) |
int | reduceFront (int) |
Protected Attributes | |
int | specialCase |
bool | moveVerticesPosition |
bool | refillQueue |
string | filename |
int | zeroLevelSize |
int | maxLevels |
int | maxChildrens |
int | minVertices |
float | maxDistance |
float | lodEdgeImporatnce |
float | lodEdgeDistanceImporatnce |
float | lodVertexImporatnce |
VLOD * | vertices |
int | iVerticesCount |
ELOD * | edges |
int | iEdgesCount |
PLOD * | polygons |
int | iPolygonsCount |
priority_queue< pair< float, int >, vector< pair< float, int > >, mycomparisonMinMax > | test_Queue |
priority_queue< pair< float, int >, vector< pair< float, int > >, mycomparisonMaxMin > | test_Subdivision_Queue |
vector< int > | treeRoots |
Static Protected Attributes | |
static const bool | bDebug = false |
APSpacePartitioning::PointShell_Object_Data_LOD_Builder::PointShell_Object_Data_LOD_Builder | ( | ) |
APSpacePartitioning::PointShell_Object_Data_LOD_Builder::~PointShell_Object_Data_LOD_Builder | ( | ) |
|
inlineprotected |
|
protected |
|
protected |
int APSpacePartitioning::PointShell_Object_Data_LOD_Builder::buildReductionLevelStructure | ( | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
void APSpacePartitioning::PointShell_Object_Data_LOD_Builder::Clear | ( | ) |
void APSpacePartitioning::PointShell_Object_Data_LOD_Builder::computeRadiusOfBoundingSpheres | ( | ) |
|
protected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
protected |
void APSpacePartitioning::PointShell_Object_Data_LOD_Builder::finishStructureBuild | ( | ) |
|
protected |
|
inlineprotected |
|
virtual |
|
protected |
vector< VLOD > APSpacePartitioning::PointShell_Object_Data_LOD_Builder::getLvlVertices | ( | int | lvl | ) |
int APSpacePartitioning::PointShell_Object_Data_LOD_Builder::getMaxLvl | ( | ) |
|
inlineprotected |
|
virtual |
|
inline |
vector< VLOD > APSpacePartitioning::PointShell_Object_Data_LOD_Builder::getRoots | ( | ) |
|
protected |
|
inlineprotected |
|
protected |
string APSpacePartitioning::PointShell_Object_Data_LOD_Builder::getStatusResult | ( | ) |
|
inlineprotected |
|
virtual |
vector< VLOD > APSpacePartitioning::PointShell_Object_Data_LOD_Builder::getVertices | ( | int | seqNum | ) |
|
virtual |
int APSpacePartitioning::PointShell_Object_Data_LOD_Builder::getZeroLevelSize | ( | ) |
|
protected |
|
protected |
|
protected |
|
protected |
void APSpacePartitioning::PointShell_Object_Data_LOD_Builder::mergeLevels | ( | ) |
|
inlineprotected |
|
inlineprotected |
|
protected |
|
protected |
|
protected |
|
protected |
void APSpacePartitioning::PointShell_Object_Data_LOD_Builder::printOutQueue | ( | ) |
void APSpacePartitioning::PointShell_Object_Data_LOD_Builder::printOutStatus | ( | ) |
void APSpacePartitioning::PointShell_Object_Data_LOD_Builder::printOutVerbouseStatus | ( | ) |
|
protected |
|
protected |
|
inlineprotected |
|
virtual |
|
inlineprotected |
void APSpacePartitioning::PointShell_Object_Data_LOD_Builder::setFileName | ( | string | name | ) |
void APSpacePartitioning::PointShell_Object_Data_LOD_Builder::setLevelZeroSize | ( | int | size, |
float | percentage | ||
) |
void APSpacePartitioning::PointShell_Object_Data_LOD_Builder::setMaxChildrens | ( | int | maxChild | ) |
void APSpacePartitioning::PointShell_Object_Data_LOD_Builder::setMaxLevels | ( | int | levels | ) |
void APSpacePartitioning::PointShell_Object_Data_LOD_Builder::setMinimumVertices | ( | int | minimum | ) |
void APSpacePartitioning::PointShell_Object_Data_LOD_Builder::setMovableVertices | ( | bool | value | ) |
void APSpacePartitioning::PointShell_Object_Data_LOD_Builder::setParameters | ( | float | lodEI, |
float | lodEDI, | ||
float | lodVI | ||
) |
|
virtual |
|
inlineprotected |
|
inlineprotected |
|
protected |
|
inlineprotected |
|
protected |
|
inlineprotected |
|
virtual |
int APSpacePartitioning::PointShell_Object_Data_LOD_Builder::subdivideMesh | ( | ) |
|
inlineprotected |
|
virtual |
void APSpacePartitioning::PointShell_Object_Data_LOD_Builder::writeEdge | ( | int | seqnum, |
int | vertexPos1, | ||
int | vertexPos2, | ||
int | polygon1, | ||
int | polygon2 | ||
) |
|
virtual |
|
virtual |
|
virtual |
|
staticprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |