Blender V4.3
Freestyle::ViewMap Class Reference

#include <ViewMap.h>

Public Types

typedef vector< ViewEdge * > viewedges_container
 
typedef vector< ViewVertex * > viewvertices_container
 
typedef vector< ViewShape * > viewshapes_container
 
typedef vector< SVertex * > svertices_container
 
typedef vector< FEdge * > fedges_container
 
typedef map< int, intid_to_index_map
 

Public Member Functions

 ViewMap ()
 
virtual ~ViewMap ()
 
const ViewEdgegetClosestViewEdge (real x, real y) const
 
const FEdgegetClosestFEdge (real x, real y) const
 
viewshapes_containerViewShapes ()
 
viewedges_containerViewEdges ()
 
viewvertices_containerViewVertices ()
 
fedges_containerFEdges ()
 
svertices_containerSVertices ()
 
viewedges_container::iterator viewedges_begin ()
 
viewedges_container::iterator viewedges_end ()
 
int viewedges_size ()
 
ViewShapeviewShape (uint id)
 
id_to_index_mapshapeIdToIndexMap ()
 
BBox< Vec3rgetScene3dBBox () const
 
void AddViewShape (ViewShape *iVShape)
 
void AddViewEdge (ViewEdge *iVEdge)
 
void AddViewVertex (ViewVertex *iVVertex)
 
void AddFEdge (FEdge *iFEdge)
 
void AddSVertex (SVertex *iSVertex)
 
void setScene3dBBox (const BBox< Vec3r > &bbox)
 
TVertexCreateTVertex (const Vec3r &iA3D, const Vec3r &iA2D, FEdge *iFEdgeA, const Vec3r &iB3D, const Vec3r &iB2D, FEdge *iFEdgeB, const Id &id)
 
ViewVertexInsertViewVertex (SVertex *iVertex, vector< ViewEdge * > &newViewEdges)
 
virtual void Clean ()
 

Static Public Member Functions

static ViewMapgetInstance ()
 

Public Attributes

void * userdata
 

Detailed Description

Class defining the ViewMap.

Note
density is the mean area depth value distance to a point.

Definition at line 47 of file ViewMap.h.

Member Typedef Documentation

◆ fedges_container

Definition at line 53 of file ViewMap.h.

◆ id_to_index_map

Definition at line 54 of file ViewMap.h.

◆ svertices_container

Definition at line 52 of file ViewMap.h.

◆ viewedges_container

Definition at line 49 of file ViewMap.h.

◆ viewshapes_container

Definition at line 51 of file ViewMap.h.

◆ viewvertices_container

Constructor & Destructor Documentation

◆ ViewMap()

Freestyle::ViewMap::ViewMap ( )
inline

Default constructor.

Definition at line 75 of file ViewMap.h.

References userdata.

◆ ~ViewMap()

Freestyle::ViewMap::~ViewMap ( )
virtual

Destructor.

Definition at line 32 of file ViewMap.cpp.

Member Function Documentation

◆ AddFEdge()

void Freestyle::ViewMap::AddFEdge ( FEdge * iFEdge)
inline

Definition at line 169 of file ViewMap.h.

◆ AddSVertex()

void Freestyle::ViewMap::AddSVertex ( SVertex * iSVertex)
inline

Definition at line 174 of file ViewMap.h.

Referenced by CreateTVertex().

◆ AddViewEdge()

void Freestyle::ViewMap::AddViewEdge ( ViewEdge * iVEdge)
inline

Definition at line 159 of file ViewMap.h.

◆ AddViewShape()

void Freestyle::ViewMap::AddViewShape ( ViewShape * iVShape)

◆ AddViewVertex()

void Freestyle::ViewMap::AddViewVertex ( ViewVertex * iVVertex)
inline

Definition at line 164 of file ViewMap.h.

Referenced by CreateTVertex().

◆ Clean()

void Freestyle::ViewMap::Clean ( )
virtual

Definition at line 55 of file ViewMap.cpp.

Referenced by Freestyle::Controller::DeleteViewMap().

◆ CreateTVertex()

◆ FEdges()

◆ getClosestFEdge()

const FEdge * Freestyle::ViewMap::getClosestFEdge ( real x,
real y ) const

Gets the Fedge the nearest to the 2D position specified as argument

Definition at line 96 of file ViewMap.cpp.

References A, B, and Freestyle::GeomUtils::distPointSegment().

◆ getClosestViewEdge()

const ViewEdge * Freestyle::ViewMap::getClosestViewEdge ( real x,
real y ) const

Gets the viewedge the nearest to the 2D position specified as argument

Definition at line 116 of file ViewMap.cpp.

References A, B, Freestyle::GeomUtils::distPointSegment(), and Freestyle::FEdge::viewedge().

◆ getInstance()

static ViewMap * Freestyle::ViewMap::getInstance ( )
inlinestatic

The ViewMap is a singleton class. This static method returns the instance of the ViewMap.

Definition at line 92 of file ViewMap.h.

Referenced by Freestyle::Operators::reset(), and Freestyle::FEdge::z_discontinuity().

◆ getScene3dBBox()

BBox< Vec3r > Freestyle::ViewMap::getScene3dBBox ( ) const
inline

Returns the scene 3D bounding box.

Definition at line 151 of file ViewMap.h.

Referenced by Freestyle::FEdge::z_discontinuity().

◆ InsertViewVertex()

◆ setScene3dBBox()

void Freestyle::ViewMap::setScene3dBBox ( const BBox< Vec3r > & bbox)
inline

Sets the scene 3D bounding box.

Definition at line 180 of file ViewMap.h.

Referenced by Freestyle::Controller::ComputeViewMap().

◆ shapeIdToIndexMap()

id_to_index_map & Freestyle::ViewMap::shapeIdToIndexMap ( )
inline

Definition at line 145 of file ViewMap.h.

◆ SVertices()

svertices_container & Freestyle::ViewMap::SVertices ( )
inline

◆ ViewEdges()

◆ viewedges_begin()

viewedges_container::iterator Freestyle::ViewMap::viewedges_begin ( )
inline

Definition at line 128 of file ViewMap.h.

◆ viewedges_end()

viewedges_container::iterator Freestyle::ViewMap::viewedges_end ( )
inline

Definition at line 133 of file ViewMap.h.

◆ viewedges_size()

int Freestyle::ViewMap::viewedges_size ( )
inline

Definition at line 138 of file ViewMap.h.

Referenced by Freestyle::Controller::ComputeViewMap().

◆ viewShape()

◆ ViewShapes()

viewshapes_container & Freestyle::ViewMap::ViewShapes ( )
inline

Definition at line 98 of file ViewMap.h.

◆ ViewVertices()

viewvertices_container & Freestyle::ViewMap::ViewVertices ( )
inline

Member Data Documentation

◆ userdata

void* Freestyle::ViewMap::userdata

A field that can be used by the user to store any data. This field must be reset afterwards using ResetUserData().

Definition at line 72 of file ViewMap.h.

Referenced by ViewMap().


The documentation for this class was generated from the following files: