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.
 
VERTEX * GetVertices () 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_MANAGER & m_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 39 of file vertex_item.h.

Constructor & Destructor Documentation

◆ VERTEX_ITEM()

VERTEX_ITEM::VERTEX_ITEM ( const VERTEX_MANAGER & aManager)
explicit

Definition at line 34 of file vertex_item.cpp.

References m_manager, m_offset, m_size, and VERTEX_MANAGER.

◆ ~VERTEX_ITEM()

VERTEX_ITEM::~VERTEX_ITEM ( )

Definition at line 44 of file vertex_item.cpp.

References m_manager.

Member Function Documentation

◆ GetOffset()

unsigned int KIGFX::VERTEX_ITEM::GetOffset ( ) const
inline

◆ GetSize()

unsigned int KIGFX::VERTEX_ITEM::GetSize ( ) const
inline

◆ GetVertices()

VERTEX * VERTEX_ITEM::GetVertices ( ) const

Return pointer to the data used by the VERTEX_ITEM.

Definition at line 50 of file vertex_item.cpp.

References 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 80 of file vertex_item.h.

References m_offset.

Referenced by KIGFX::CACHED_CONTAINER_GPU::defragmentResize().

◆ 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 90 of file vertex_item.h.

References m_size.

Referenced by KIGFX::CACHED_CONTAINER::Delete().

Friends And Related Symbol Documentation

◆ CACHED_CONTAINER

friend class CACHED_CONTAINER
friend

Definition at line 42 of file vertex_item.h.

References CACHED_CONTAINER.

Referenced by CACHED_CONTAINER.

◆ CACHED_CONTAINER_GPU

friend class CACHED_CONTAINER_GPU
friend

Definition at line 43 of file vertex_item.h.

References CACHED_CONTAINER_GPU.

Referenced by CACHED_CONTAINER_GPU.

◆ VERTEX_MANAGER

friend class VERTEX_MANAGER
friend

Definition at line 44 of file vertex_item.h.

References VERTEX_MANAGER.

Referenced by VERTEX_ITEM(), and VERTEX_MANAGER.

Member Data Documentation

◆ m_manager

const VERTEX_MANAGER& KIGFX::VERTEX_ITEM::m_manager
private

Definition at line 95 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 96 of file vertex_item.h.

Referenced by GetOffset(), setOffset(), and VERTEX_ITEM().

◆ m_size

unsigned int KIGFX::VERTEX_ITEM::m_size
private

Definition at line 97 of file vertex_item.h.

Referenced by GetSize(), setSize(), and VERTEX_ITEM().


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