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 826 of file view.cpp.

Constructor & Destructor Documentation

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

Definition at line 828 of file view.cpp.

828  :
829  layer( aLayer ), depth( aDepth ), gal( aGal )
830  {
831  }

Member Function Documentation

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

Definition at line 833 of file view.cpp.

References KIGFX::VIEW_ITEM_DATA::getGroup(), and KIGFX::VIEW_ITEM::viewPrivData().

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

Member Data Documentation

int KIGFX::VIEW::changeItemsDepth::depth

Definition at line 843 of file view.cpp.

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

Definition at line 844 of file view.cpp.

int KIGFX::VIEW::changeItemsDepth::layer

Definition at line 843 of file view.cpp.


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