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

Public Member Functions

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

Public Attributes

int layer
 
int depth
 
GALgal
 

Detailed Description

Definition at line 806 of file view.cpp.

Constructor & Destructor Documentation

◆ UPDATE_DEPTH_VISITOR()

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

Definition at line 808 of file view.cpp.

808  :
809  layer( aLayer ),
810  depth( aDepth ),
811  gal( aGal )
812  {
813  }

Member Function Documentation

◆ operator()()

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

Definition at line 815 of file view.cpp.

816  {
817  int group = aItem->viewPrivData()->getGroup( layer );
818 
819  if( group >= 0 )
820  gal->ChangeGroupDepth( group, depth );
821 
822  return true;
823  }
virtual void ChangeGroupDepth(int aGroupNumber, int aDepth)
Change the depth (Z-axis position) of the group.

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

Member Data Documentation

◆ depth

int KIGFX::VIEW::UPDATE_DEPTH_VISITOR::depth

Definition at line 825 of file view.cpp.

Referenced by operator()().

◆ gal

GAL* KIGFX::VIEW::UPDATE_DEPTH_VISITOR::gal

Definition at line 826 of file view.cpp.

Referenced by operator()().

◆ layer

int KIGFX::VIEW::UPDATE_DEPTH_VISITOR::layer

Definition at line 825 of file view.cpp.

Referenced by operator()().


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