VTK  9.4.20241220
Public Member Functions | Static Public Member Functions | Protected Attributes | Friends | List of all members
vtkIndent Class Reference

a simple class to control print indentation More...

#include <vtkIndent.h>

Public Member Functions

void Delete ()
 
 vtkIndent (int ind=0)
 
vtkIndent GetNextIndent ()
 Determine the next indentation level.
 

Static Public Member Functions

static vtkIndentNew ()
 

Protected Attributes

int Indent
 

Friends

VTKCOMMONCORE_EXPORT ostream & operator<< (ostream &os, const vtkIndent &o)
 Print out the indentation.
 

Detailed Description

a simple class to control print indentation

vtkIndent is used to control indentation during the chaining print process. This way nested objects can correctly indent themselves.

Examples:
vtkIndent (Examples)
Online Examples:

Tests:
vtkIndent (Tests)

Definition at line 107 of file vtkIndent.h.

Constructor & Destructor Documentation

◆ vtkIndent()

vtkIndent::vtkIndent ( int  ind = 0)
inlineexplicit

Definition at line 111 of file vtkIndent.h.

Member Function Documentation

◆ Delete()

void vtkIndent::Delete ( )
inline

Definition at line 110 of file vtkIndent.h.

◆ New()

static vtkIndent * vtkIndent::New ( )
static

◆ GetNextIndent()

vtkIndent vtkIndent::GetNextIndent ( )

Determine the next indentation level.

Keep indenting by two until the max of forty.

Friends And Related Symbol Documentation

◆ operator<<

VTKCOMMONCORE_EXPORT ostream & operator<< ( ostream &  os,
const vtkIndent o 
)
friend

Print out the indentation.

Basically output a bunch of spaces.

Member Data Documentation

◆ Indent

int vtkIndent::Indent
protected

Definition at line 126 of file vtkIndent.h.


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