DGtal 2.1.0
Loading...
Searching...
No Matches
DGtal::DisplayStyle Struct Reference

Style of display of an element. More...

#include <DGtal/io/Display3D.h>

Public Types

enum  DrawMode : size_t {
  DEFAULT = (1 << 0) , PAVING = (1 << 1) , BALLS = (1 << 2) , ADJACENCIES = (1 << 3) ,
  GRID = (1 << 4) , SIMPLIFIED = (1 << 5)
}
 List available draw modes. More...
 

Data Fields

Color color = Color(200, 200, 200, 255)
 
bool useDefaultColors = true
 
double width = 1.0
 
size_t mode = static_cast<size_t>(DrawMode::DEFAULT)
 

Detailed Description

Style of display of an element.

Definition at line 177 of file Display3D.h.

Member Enumeration Documentation

◆ DrawMode

List available draw modes.

Draw mode are meant as a shortcut to change how objects are displayed. Not all draw modes are supported for every objects.

Enumerator
DEFAULT 
PAVING 
BALLS 
ADJACENCIES 
GRID 
SIMPLIFIED 

Definition at line 192 of file Display3D.h.

192 : size_t {
193 DEFAULT = (1 << 0), //< Default mode
194 PAVING = (1 << 1), //< For voxels, render them as cubes
195 BALLS = (1 << 2), //< For voxels, render them as balls
196 ADJACENCIES = (1 << 3), //< For objects, draws adjacencies
197 GRID = (1 << 4), //< For domains, draws a grid
198 SIMPLIFIED = (1 << 5) //< For KCell, draws quads instead of prisms
199 };

Field Documentation

◆ color

Color DGtal::DisplayStyle::color = Color(200, 200, 200, 255)

Definition at line 179 of file Display3D.h.

◆ mode

size_t DGtal::DisplayStyle::mode = static_cast<size_t>(DrawMode::DEFAULT)

Definition at line 201 of file Display3D.h.

Referenced by main().

◆ useDefaultColors

bool DGtal::DisplayStyle::useDefaultColors = true

Definition at line 181 of file Display3D.h.

◆ width

double DGtal::DisplayStyle::width = 1.0

Definition at line 183 of file Display3D.h.


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