HAL
hal::GraphicsFactory Namespace Reference

Contains utility factory functions. More...

Functions

QStringList graphicsModuleTypes ()
 
QStringList graphicsGateTypes ()
 
GraphicsModulecreateGraphicsModule (Module *m, const int type)
 
GraphicsGatecreateGraphicsGate (Gate *g, const int type)
 

Detailed Description

Contains utility factory functions.

The GraphicsFactory namespace provides functions to create GraphicsModules and GraphicsGates

Function Documentation

◆ createGraphicsGate()

GraphicsGate * hal::GraphicsFactory::createGraphicsGate ( Gate g,
const int  type 
)

Creates a GraphicsGate for a certain gate on the heap.

Parameters
g- The underlying gate of the GraphicsModule
type- The type of the GraphicsGate (must be 0 currently)
Returns
a pointer to the new GraphicsGate

Definition at line 39 of file graphics_factory.cpp.

References test_plugin::g, and type.

Referenced by hal::NodeBox::NodeBox(), and hal::GatelibraryGraphicsView::showGate().

◆ createGraphicsModule()

GraphicsModule * hal::GraphicsFactory::createGraphicsModule ( Module m,
const int  type 
)

Creates a GraphicsModule for a certain module on the heap.

Parameters
m- The underlying module of the GraphicsModule
type- The type of the GraphicsModule (must be 0 currently)
Returns
a pointer to the new GraphicsModules

Definition at line 28 of file graphics_factory.cpp.

References type.

Referenced by hal::NodeBox::NodeBox().

◆ graphicsGateTypes()

QStringList hal::GraphicsFactory::graphicsGateTypes ( )

Definition at line 20 of file graphics_factory.cpp.

◆ graphicsModuleTypes()

QStringList hal::GraphicsFactory::graphicsModuleTypes ( )

Definition at line 12 of file graphics_factory.cpp.