CustusX  2021.04.22-dev+develop.337f9
An IGT application
cxIndent.cpp
Go to the documentation of this file.
1 /*=========================================================================
2 This file is part of CustusX, an Image Guided Therapy Application.
3 
4 Copyright (c) SINTEF Department of Medical Technology.
5 All rights reserved.
6 
7 CustusX is released under a BSD 3-Clause license.
8 
9 See Lisence.txt (https://github.com/SINTEFMedtek/CustusX/blob/master/License.txt) for details.
10 =========================================================================*/
11 
12 #include "cxIndent.h"
13 
14 namespace cx
15 {
16 
17 Indent::Indent() : mDetail(dNORMAL), mIndent(0) {}
18 
19 Indent::Indent(int ind, DETAIL det) : mDetail(det), mIndent(ind) {}
20 
22 
23 int Indent::getIndent() const { return mIndent; }
24 
25 vtkIndent Indent::getVtkIndent() const { return vtkIndent(mIndent); }
26 
28 {
29  return Indent(getIndent()+3, mDetail);
30 }
31 
33 {
34  return mDetail >=dDETAILS;
35 }
36 
38 {
39  return mDetail >=dNORMAL;
40 }
41 
42 ostream& operator<<(ostream &os, const Indent &val)
43 {
44  os << std::string(val.getIndent(), ' ').c_str();
45  return os;
46 }
47 
48 
49 }
print all contents of ssc structures
Definition: cxIndent.h:33
int getIndent() const
Definition: cxIndent.cpp:23
DETAIL mDetail
how much info to print
Definition: cxIndent.h:48
vtkIndent getVtkIndent() const
Definition: cxIndent.cpp:25
int mIndent
Definition: cxIndent.h:49
include printing of vtk objects
Definition: cxIndent.h:34
bool includeDetails() const
Definition: cxIndent.cpp:32
Formatting class for debug printing of the ssc library.
Definition: cxIndent.h:28
std::ostream & operator<<(std::ostream &s, const IntBoundingBox3D &data)
Indent stepDown() const
Definition: cxIndent.cpp:27
bool includeNormal() const
Definition: cxIndent.cpp:37
Namespace for all CustusX production code.