HAL  v4.5.0-83-g30c8f0afc
The Hardware Analyzer - a comprehensive reverse engineering and manipulation framework for gate-level netlists.
hal::WaveFormPrimitive Class Referenceabstract

#include </home/runner/work/hal/hal/plugins/simulator/waveform_viewer/include/waveform_viewer/wave_form_primitive.h>

Inheritance diagram for hal::WaveFormPrimitive:
Inheritance graph
Collaboration diagram for hal::WaveFormPrimitive:
Collaboration graph

Public Member Functions

 WaveFormPrimitive (float x0, float x1)
 
virtual ~WaveFormPrimitive ()
 
virtual void paint (int y0, QPainter &painter)=0
 
float x0 () const
 
float x1 () const
 
bool isInRange (int x) const
 
virtual int value () const
 

Protected Attributes

float mX0
 
float mX1
 

Detailed Description

The base class for the drawing primitives that a rendered waveform is composed of.

Definition at line 37 of file wave_form_primitive.h.

Constructor & Destructor Documentation

◆ WaveFormPrimitive()

hal::WaveFormPrimitive::WaveFormPrimitive ( float  x0,
float  x1 
)
inline

Definition at line 43 of file wave_form_primitive.h.

◆ ~WaveFormPrimitive()

virtual hal::WaveFormPrimitive::~WaveFormPrimitive ( )
inlinevirtual

Definition at line 44 of file wave_form_primitive.h.

Member Function Documentation

◆ isInRange()

bool hal::WaveFormPrimitive::isInRange ( int  x) const
inline

Definition at line 48 of file wave_form_primitive.h.

References mX0, mX1, and x.

Referenced by hal::WaveFormPainted::valueXpos().

◆ paint()

◆ value()

virtual int hal::WaveFormPrimitive::value ( ) const
inlinevirtual

◆ x0()

◆ x1()

float hal::WaveFormPrimitive::x1 ( ) const
inline

Member Data Documentation

◆ mX0

◆ mX1


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