Engauge Digitizer 2
Loading...
Searching...
No Matches
Public Member Functions | List of all members
GridLines Class Reference

Container class for GridLine objects. More...

#include <GridLines.h>

Collaboration diagram for GridLines:
Collaboration graph

Public Member Functions

 GridLines ()
 Single constructor.
 
 ~GridLines ()
 Destructor deallocates memory.
 
void add (GridLine *gridLine)
 Add specified grid line. Ownership of all allocated QGraphicsItems is passed to new GridLine.
 
void clear ()
 Deallocate and remove all grid lines.
 
void setPen (const QPen &pen)
 Set the pen style of each grid line.
 
void setVisible (bool visible)
 Make all grid lines visible or hidden.
 

Detailed Description

Container class for GridLine objects.

Definition at line 18 of file GridLines.h.

Constructor & Destructor Documentation

◆ GridLines()

GridLines::GridLines ( )

Single constructor.

Definition at line 10 of file GridLines.cpp.

11{
12}

◆ ~GridLines()

GridLines::~GridLines ( )

Destructor deallocates memory.

Definition at line 14 of file GridLines.cpp.

15{
16 qDeleteAll (m_gridLinesContainer);
17}
const int INNER_RADIUS_MIN

Member Function Documentation

◆ add()

void GridLines::add ( GridLine * gridLine)

Add specified grid line. Ownership of all allocated QGraphicsItems is passed to new GridLine.

Definition at line 19 of file GridLines.cpp.

20{
21 m_gridLinesContainer.push_back (gridLine);
22}

◆ clear()

void GridLines::clear ( )

Deallocate and remove all grid lines.

Definition at line 24 of file GridLines.cpp.

25{
26 for (int i = 0; i < m_gridLinesContainer.count(); i++) {
27 GridLine *gridLine = m_gridLinesContainer [i];
28 delete gridLine;
29 }
30
31 m_gridLinesContainer.clear();
32}
Single grid line drawn a straight or curved line.
Definition GridLine.h:21

◆ setPen()

void GridLines::setPen ( const QPen & pen)

Set the pen style of each grid line.

Definition at line 34 of file GridLines.cpp.

35{
36 for (int i = 0; i < m_gridLinesContainer.count(); i++) {
37 m_gridLinesContainer [i]->setPen (pen);
38 }
39}

◆ setVisible()

void GridLines::setVisible ( bool visible)

Make all grid lines visible or hidden.

Definition at line 41 of file GridLines.cpp.

42{
43 for (int i = 0; i < m_gridLinesContainer.count(); i++) {
44 m_gridLinesContainer [i]->setVisible (visible);
45 }
46}

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