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

795  :
796  layer( aLayer ),
797  depth( aDepth ),
798  gal( aGal )
799  {
800  }

Member Function Documentation

◆ operator()()

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

Definition at line 802 of file view.cpp.

803  {
804  int group = aItem->viewPrivData()->getGroup( layer );
805 
806  if( group >= 0 )
807  gal->ChangeGroupDepth( group, depth );
808 
809  return true;
810  }
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 812 of file view.cpp.

Referenced by operator()().

◆ gal

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

Definition at line 813 of file view.cpp.

Referenced by operator()().

◆ layer

int KIGFX::VIEW::UPDATE_DEPTH_VISITOR::layer

Definition at line 812 of file view.cpp.

Referenced by operator()().


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