#include <itkIndent.h>
Indent is used to control indentation during the chaining print process. This way nested objects can correctly indent themselves. This class works with the print methods defined in Object (i.e., the public method Print() and the protected methods PrintSelf(), PrintHeader(), and PrintTrailer().
Definition at line 41 of file itkIndent.h.
Public Types | |
typedef Indent | Self |
Public Member Functions | |
void | Delete () |
Indent | GetNextIndent () |
Indent (int ind=0) | |
Static Public Member Functions | |
static const char * | GetNameOfClass () |
static Self * | New () |
Friends | |
ITKCommon_EXPORT std::ostream & | operator<< (std::ostream &os, const Indent &o) |
typedef Indent itk::Indent::Self |
Standard class typedefs.
Definition at line 45 of file itkIndent.h.
itk::Indent::Indent | ( | int | ind = 0 |
) | [inline] |
Construct the object with an initial indentation level.
Definition at line 54 of file itkIndent.h.
void itk::Indent::Delete | ( | ) | [inline] |
Destroy this instance.
Definition at line 51 of file itkIndent.h.
static const char* itk::Indent::GetNameOfClass | ( | ) | [inline, static] |
Return the name of the class.
Definition at line 57 of file itkIndent.h.
Indent itk::Indent::GetNextIndent | ( | ) |
Determine the next indentation level. Keep indenting by two until the a maximum of forty spaces is reached.
Referenced by itk::NeighborhoodOperator< TPixel, TDimension, TAllocator >::PrintSelf(), itk::LaplacianOperator< TPixel, VDimension, TAllocator >::PrintSelf(), itk::GaussianOperator< TPixel, VDimension, TAllocator >::PrintSelf(), itk::DerivativeOperator< OutputImagePixelType, itkGetStaticConstMacro(ImageDimension)>::PrintSelf(), and itk::AnnulusOperator< TPixel, TDimension, TAllocator >::PrintSelf().
static Self* itk::Indent::New | ( | ) | [static] |
Method for creation through the object factory.
ITKCommon_EXPORT std::ostream& operator<< | ( | std::ostream & | os, | |
const Indent & | o | |||
) | [friend] |
Print out the indentation. Basically output a bunch of spaces.