KiCad PCB EDA Suite
Loading...
Searching...
No Matches
KIGFX::VERTEX_ITEM Class Reference

#include <vertex_item.h>

Public Member Functions

 VERTEX_ITEM (const VERTEX_MANAGER &aManager)
 
 ~VERTEX_ITEM ()
 
unsigned int GetSize () const
 Return information about number of vertices stored.
 
unsigned int GetOffset () const
 Return data offset in the container.
 
VERTEXGetVertices () const
 Return pointer to the data used by the VERTEX_ITEM.
 

Private Member Functions

void setOffset (unsigned int aOffset)
 Set data offset in the container.
 
void setSize (unsigned int aSize)
 Set data size in the container.
 

Private Attributes

const VERTEX_MANAGERm_manager
 
unsigned int m_offset
 
unsigned int m_size
 

Friends

class CACHED_CONTAINER
 
class CACHED_CONTAINER_GPU
 
class VERTEX_MANAGER
 

Detailed Description

Definition at line 43 of file vertex_item.h.

Constructor & Destructor Documentation

◆ VERTEX_ITEM()

VERTEX_ITEM::VERTEX_ITEM ( const VERTEX_MANAGER aManager)
explicit

Definition at line 38 of file vertex_item.cpp.

References m_manager, and KIGFX::VERTEX_MANAGER::SetItem().

◆ ~VERTEX_ITEM()

VERTEX_ITEM::~VERTEX_ITEM ( )

Definition at line 48 of file vertex_item.cpp.

References KIGFX::VERTEX_MANAGER::FreeItem(), and m_manager.

Member Function Documentation

◆ GetOffset()

◆ GetSize()

◆ GetVertices()

VERTEX * VERTEX_ITEM::GetVertices ( ) const

Return pointer to the data used by the VERTEX_ITEM.

Definition at line 54 of file vertex_item.cpp.

References KIGFX::VERTEX_MANAGER::GetVertices(), and m_manager.

◆ setOffset()

void KIGFX::VERTEX_ITEM::setOffset ( unsigned int  aOffset)
inlineprivate

Set data offset in the container.

Parameters
aOffsetis the offset expressed as a number of vertices.

Definition at line 84 of file vertex_item.h.

References m_offset.

Referenced by KIGFX::CACHED_CONTAINER::defragment(), KIGFX::CACHED_CONTAINER_GPU::defragmentResize(), and KIGFX::CACHED_CONTAINER::reallocate().

◆ setSize()

void KIGFX::VERTEX_ITEM::setSize ( unsigned int  aSize)
inlineprivate

Set data size in the container.

Parameters
aSizeis the size expressed as a number of vertices.

Definition at line 94 of file vertex_item.h.

References m_size.

Referenced by KIGFX::CACHED_CONTAINER::Allocate(), and KIGFX::CACHED_CONTAINER::Delete().

Friends And Related Function Documentation

◆ CACHED_CONTAINER

friend class CACHED_CONTAINER
friend

Definition at line 46 of file vertex_item.h.

◆ CACHED_CONTAINER_GPU

friend class CACHED_CONTAINER_GPU
friend

Definition at line 47 of file vertex_item.h.

◆ VERTEX_MANAGER

friend class VERTEX_MANAGER
friend

Definition at line 48 of file vertex_item.h.

Member Data Documentation

◆ m_manager

const VERTEX_MANAGER& KIGFX::VERTEX_ITEM::m_manager
private

Definition at line 99 of file vertex_item.h.

Referenced by GetVertices(), VERTEX_ITEM(), and ~VERTEX_ITEM().

◆ m_offset

unsigned int KIGFX::VERTEX_ITEM::m_offset
private

Definition at line 100 of file vertex_item.h.

Referenced by GetOffset(), and setOffset().

◆ m_size

unsigned int KIGFX::VERTEX_ITEM::m_size
private

Definition at line 101 of file vertex_item.h.

Referenced by GetSize(), and setSize().


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