|
|
|
|
Documentation |
|
Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages Search
NLLIGO::CZoneTemplate Class ReferenceLigo zone template.
More...
#include <zone_template.h>
List of all members.
Public Methods |
bool | build (const std::vector< NLMISC::CVector > &vertices, const std::vector< std::pair< uint, uint > > &indexes, const CLigoConfig &config, CLigoError &errors) |
| Build method. More...
|
void | serial (NLMISC::IStream &s) |
| Serialisation. More...
|
const std::vector< CZoneEdge > & | getEdges () const |
| Get the vertex array of the template. More...
|
void | getMask (std::vector< bool > &mask, uint &width, uint &height) |
| Get the mask of the template. More...
|
Static Private Methods |
void | snap (float &value, float snap) |
| Round a value on the snap resolution. More...
|
bool | snapOnGrid (float &value, float resolution, float snap) |
| Snap a value on the grid. More...
|
bool | isSnapedOnGrid (float value, float resolution, float snap) |
| Return true if this value is snapped. More...
|
sint32 | getSnappedIndex (float value, float resolution, float snap) |
| Return the interger index of a snappable value. More...
|
Private Attributes |
std::vector< CZoneEdge > | _Edges |
| Vertex array. More...
|
Detailed Description
Ligo zone template.
-
Author:
-
Cyril 'Hulud' Corvazier , Nevrax France
-
Date:
-
2001
Definition at line 49 of file zone_template.h.
Member Function Documentation
|
Build method.
Build the zone template with a vertex list and an edge list. -
Parameters:
-
vertices |
is the vertex array |
indexes |
is the edge array |
config |
is the current lingo config file |
errors |
is the error structure |
-
Returns:
-
true if the build success, else return false
Definition at line 107 of file zone_template.cpp.
References _Edges, getSnappedIndex, isSnapedOnGrid, nlassert, NLMISC::Pi, sint32, NLLIGO::SnappedXFlag, NLLIGO::SnappedYFlag, uint, x, and y. |
const std::vector<CZoneEdge>& NLLIGO::CZoneTemplate::getEdges |
( |
|
) |
const [inline] |
|
void NLLIGO::CZoneTemplate::getMask |
( |
std::vector< bool > & |
mask, |
|
|
uint & |
width, |
|
|
uint & |
height |
|
) |
|
|
sint32 NLLIGO::CZoneTemplate::getSnappedIndex |
( |
float |
value, |
|
|
float |
resolution, |
|
|
float |
snap |
|
) |
[inline, static, private] |
|
bool NLLIGO::CZoneTemplate::isSnapedOnGrid |
( |
float |
value, |
|
|
float |
resolution, |
|
|
float |
snap |
|
) |
[inline, static, private] |
|
void NLLIGO::CZoneTemplate::snap |
( |
float & |
value, |
|
|
float |
snap |
|
) |
[inline, static, private] |
|
bool NLLIGO::CZoneTemplate::snapOnGrid |
( |
float & |
value, |
|
|
float |
resolution, |
|
|
float |
snap |
|
) |
[inline, static, private] |
|
Member Data Documentation
std::vector<CZoneEdge> NLLIGO::CZoneTemplate::_Edges [private]
|
|
The documentation for this class was generated from the following files:
|
|