ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itk::Indent Class Reference

#include <itkIndent.h>

Detailed Description

Control indentation during Print() invocation.

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().

Examples
Examples/Filtering/CompositeFilterExample.cxx, and Examples/Filtering/OrientImageFilter.cxx.

Definition at line 49 of file itkIndent.h.

Public Types

using Self = Indent
 

Public Member Functions

void Delete ()
 
Indent GetNextIndent () const
 
 Indent (int ind=0)
 

Static Public Member Functions

static const char * GetNameOfClass ()
 
static SelfNew ()
 

Private Attributes

int m_Indent
 

Friends

ITKCommon_EXPORT std::ostream & operator<< (std::ostream &os, const Indent &ind)
 

Member Typedef Documentation

◆ Self

Standard class type aliases.

Definition at line 53 of file itkIndent.h.

Constructor & Destructor Documentation

◆ Indent()

itk::Indent::Indent ( int ind = 0)
inline

Construct the object with an initial indentation level.

Definition at line 67 of file itkIndent.h.

References m_Indent.

Referenced by operator<<.

Member Function Documentation

◆ Delete()

void itk::Indent::Delete ( )
inline

Destroy this instance.

Definition at line 61 of file itkIndent.h.

◆ GetNameOfClass()

static const char * itk::Indent::GetNameOfClass ( )
inlinestatic

Return the name of the class.

Definition at line 71 of file itkIndent.h.

◆ GetNextIndent()

Indent itk::Indent::GetNextIndent ( ) const

Determine the next indentation level. Keep indenting by two until the a maximum of forty spaces is reached.

◆ New()

static Self * itk::Indent::New ( )
static

Method for creation through the object factory.

Friends And Related Symbol Documentation

◆ operator<<

ITKCommon_EXPORT std::ostream & operator<< ( std::ostream & os,
const Indent & ind )
friend

Print out the indentation. Basically output a bunch of spaces.

References Indent().

Member Data Documentation

◆ m_Indent

int itk::Indent::m_Indent
private

Definition at line 86 of file itkIndent.h.

Referenced by Indent().


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