CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
OdGeTess2::OptimizedHolder Class Reference

#include <GeTess2.h>

Inheritance diagram for OdGeTess2::OptimizedHolder:

Public Member Functions

 OptimizedHolder (OdUInt32 nPreAllocVertexes, OdUInt32 nPreAllocContours)
 
virtual Vertex * newVertex () ODRX_OVERRIDE
 
virtual void deleteVertex (Vertex *pVx) ODRX_OVERRIDE
 
virtual Contour * newContour () ODRX_OVERRIDE
 
virtual void deleteContour (Contour *) ODRX_OVERRIDE
 
 ~OptimizedHolder ()
 

Detailed Description

This class is an optimized memory holder for management of contours and vertex memory.

Remarks
This class represents a memory manager for elements that take part in the tessellation process. It allocates memory for growing arrays in blocks and does not relocate memory as std::vector, for example. This approach increases performance and reduces the time required to tessellate contours.

FOR INTERNAL USE.

Corresponding C++ library: TD_Ge

<group OdGe_Classes>

Definition at line 152 of file GeTess2.h.

Constructor & Destructor Documentation

◆ OptimizedHolder()

OdGeTess2::OptimizedHolder::OptimizedHolder ( OdUInt32  nPreAllocVertexes,
OdUInt32  nPreAllocContours 
)

Constructor for objects of the OptimizedHolder class.

Parameters
nPreAllocVertexes[in] Number of vertices for which memory needs to be allocated.
nPreAllocContours[in] Number of contours for which memory needs to be allocated.
Remarks
Constructs an object with the defined number of elements for which memory should be allocated.

◆ ~OptimizedHolder()

OdGeTess2::OptimizedHolder::~OptimizedHolder ( )

Destructor for objects of the OptimizedHolder class.

Member Function Documentation

◆ deleteContour()

virtual void OdGeTess2::OptimizedHolder::deleteContour ( Contour *  )
virtual

Frees memory of a specified contour.

Remarks
Currently not implemented.

◆ deleteVertex()

virtual void OdGeTess2::OptimizedHolder::deleteVertex ( Vertex *  pVx)
virtual

Frees memory of a specified vertex.

Parameters
pVx[in] A pointer to a vertex that should be deleted.
Remarks
Currently not implemented.

◆ newContour()

virtual Contour * OdGeTess2::OptimizedHolder::newContour ( )
virtual

Allocates memory for a new contour.

◆ newVertex()

virtual Vertex * OdGeTess2::OptimizedHolder::newVertex ( )
virtual

Allocates memory for a new vertex.


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