KiCad PCB EDA Suite
KIGFX::VIEW::changeItemsDepth Struct Reference

Public Member Functions

 changeItemsDepth (int aLayer, int aDepth, GAL *aGal)
 
bool operator() (VIEW_ITEM *aItem)
 

Public Attributes

int layer
 
int depth
 
GALgal
 

Detailed Description

Definition at line 829 of file view.cpp.

Constructor & Destructor Documentation

◆ changeItemsDepth()

KIGFX::VIEW::changeItemsDepth::changeItemsDepth ( int  aLayer,
int  aDepth,
GAL aGal 
)
inline

Definition at line 831 of file view.cpp.

831  :
832  layer( aLayer ), depth( aDepth ), gal( aGal )
833  {
834  }

Member Function Documentation

◆ operator()()

bool KIGFX::VIEW::changeItemsDepth::operator() ( VIEW_ITEM aItem)
inline

Definition at line 836 of file view.cpp.

837  {
838  int group = aItem->viewPrivData()->getGroup( layer );
839 
840  if( group >= 0 )
841  gal->ChangeGroupDepth( group, depth );
842 
843  return true;
844  }
virtual void ChangeGroupDepth(int aGroupNumber, int aDepth)
Changes the depth (Z-axis position) of the group.

References KIGFX::GAL::ChangeGroupDepth(), depth, gal, KIGFX::VIEW_ITEM_DATA::getGroup(), layer, and KIGFX::VIEW_ITEM::viewPrivData().

Member Data Documentation

◆ depth

int KIGFX::VIEW::changeItemsDepth::depth

Definition at line 846 of file view.cpp.

Referenced by operator()().

◆ gal

GAL* KIGFX::VIEW::changeItemsDepth::gal

Definition at line 847 of file view.cpp.

Referenced by operator()().

◆ layer

int KIGFX::VIEW::changeItemsDepth::layer

Definition at line 846 of file view.cpp.

Referenced by operator()().


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