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

Detailed Description

Definition at line 697 of file view.cpp.

Constructor & Destructor Documentation

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

Definition at line 699 of file view.cpp.

699  :
700  layer( aLayer ), depth( aDepth ), gal( aGal )
701  {
702  }

Member Function Documentation

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

Definition at line 704 of file view.cpp.

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

705  {
706  int group = aItem->viewPrivData()->getGroup( layer );
708  if( group >= 0 )
709  gal->ChangeGroupDepth( group, depth );
711  return true;
712  }
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 714 of file view.cpp.

Referenced by operator()().

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

Definition at line 715 of file view.cpp.

Referenced by operator()().

int KIGFX::VIEW::changeItemsDepth::layer

Definition at line 714 of file view.cpp.

Referenced by operator()().

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