Blender V5.0
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, int > id_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 45 of file ViewMap.h.

Member Typedef Documentation

◆ fedges_container

◆ id_to_index_map

Definition at line 52 of file ViewMap.h.

◆ svertices_container

◆ viewedges_container

◆ viewshapes_container

◆ viewvertices_container

Constructor & Destructor Documentation

◆ ViewMap()

Freestyle::ViewMap::ViewMap ( )
inline

Default constructor.

Definition at line 73 of file ViewMap.h.

References userdata.

Referenced by getInstance().

◆ ~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 167 of file ViewMap.h.

◆ AddSVertex()

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

Definition at line 172 of file ViewMap.h.

Referenced by CreateTVertex().

◆ AddViewEdge()

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

Definition at line 157 of file ViewMap.h.

◆ AddViewShape()

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

Definition at line 90 of file ViewMap.cpp.

References Freestyle::Id::getFirst(), and Freestyle::ViewShape::getId().

◆ AddViewVertex()

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

Definition at line 162 of file ViewMap.h.

Referenced by CreateTVertex().

◆ Clean()

void Freestyle::ViewMap::Clean ( )
virtual

Definition at line 55 of file ViewMap.cpp.

◆ 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, Freestyle::GeomUtils::distPointSegment(), Freestyle::x, and y.

◆ 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(), Freestyle::FEdge::viewedge(), Freestyle::x, and y.

◆ getInstance()

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

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

Definition at line 90 of file ViewMap.h.

References ViewMap().

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 149 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 178 of file ViewMap.h.

◆ shapeIdToIndexMap()

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

Definition at line 143 of file ViewMap.h.

◆ SVertices()

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

Definition at line 120 of file ViewMap.h.

Referenced by Freestyle::ViewMapBuilder::ComputeSweepLineIntersections().

◆ ViewEdges()

◆ viewedges_begin()

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

Definition at line 126 of file ViewMap.h.

◆ viewedges_end()

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

Definition at line 131 of file ViewMap.h.

◆ viewedges_size()

int Freestyle::ViewMap::viewedges_size ( )
inline

Definition at line 136 of file ViewMap.h.

◆ viewShape()

◆ ViewShapes()

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

Definition at line 96 of file ViewMap.h.

◆ ViewVertices()

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

Definition at line 108 of file ViewMap.h.

Referenced by Freestyle::ViewMapBuilder::ComputeIntersections().

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 70 of file ViewMap.h.

Referenced by ViewMap().


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