KiCad PCB EDA Suite
|
#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 |
Definition at line 43 of file vertex_item.h.
|
explicit |
Definition at line 38 of file vertex_item.cpp.
References m_manager, and KIGFX::VERTEX_MANAGER::SetItem().
VERTEX_ITEM::~VERTEX_ITEM | ( | ) |
Definition at line 48 of file vertex_item.cpp.
References KIGFX::VERTEX_MANAGER::FreeItem(), and m_manager.
|
inline |
Return data offset in the container.
Definition at line 68 of file vertex_item.h.
References m_offset.
Referenced by KIGFX::VERTEX_MANAGER::ChangeItemColor(), KIGFX::VERTEX_MANAGER::ChangeItemDepth(), KIGFX::CACHED_CONTAINER::defragment(), KIGFX::CACHED_CONTAINER_GPU::defragmentResize(), KIGFX::CACHED_CONTAINER::Delete(), KIGFX::GPU_CACHED_MANAGER::DrawIndices(), KIGFX::CACHED_CONTAINER::FinishItem(), KIGFX::VERTEX_MANAGER::GetVertices(), and KIGFX::CACHED_CONTAINER::SetItem().
|
inline |
Return information about number of vertices stored.
Definition at line 58 of file vertex_item.h.
References m_size.
Referenced by KIGFX::CACHED_CONTAINER::Allocate(), KIGFX::VERTEX_MANAGER::ChangeItemColor(), KIGFX::VERTEX_MANAGER::ChangeItemDepth(), KIGFX::CACHED_CONTAINER::defragment(), KIGFX::CACHED_CONTAINER_GPU::defragmentResize(), KIGFX::CACHED_CONTAINER::Delete(), KIGFX::GPU_CACHED_MANAGER::DrawIndices(), KIGFX::CACHED_CONTAINER::FinishItem(), KIGFX::VERTEX_MANAGER::GetVertices(), KIGFX::CACHED_CONTAINER::reallocate(), and KIGFX::CACHED_CONTAINER::SetItem().
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.
|
inlineprivate |
Set data offset in the container.
aOffset | is 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().
|
inlineprivate |
Set data size in the container.
aSize | is 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().
|
friend |
Definition at line 46 of file vertex_item.h.
|
friend |
Definition at line 47 of file vertex_item.h.
|
friend |
Definition at line 48 of file vertex_item.h.
|
private |
Definition at line 99 of file vertex_item.h.
Referenced by GetVertices(), VERTEX_ITEM(), and ~VERTEX_ITEM().
|
private |
Definition at line 100 of file vertex_item.h.
Referenced by GetOffset(), and setOffset().
|
private |
Definition at line 101 of file vertex_item.h.