DGtal  1.5.beta
DGtal::SetName3D Struct Reference

#include <DGtal/io/DrawWithDisplay3DModifier.h>

Inheritance diagram for DGtal::SetName3D:

Public Member Functions

 SetName3D (DGtal::int32_t aName=-1)
std::string className () const
- Public Member Functions inherited from DGtal::DrawWithDisplay3DModifier
std::string className () const

Data Fields

DGtal::int32_t name
 the "OpenGL name" for selection, or -1 for none. More...

Detailed Description

This structure is used to set the "OpenGL name" (an integer identifier) of the following display command(s). You may use it like

SCell surfel = ... ;
viewer << SetName3D( 100 );
viewer << surfel; // surfel is identified with name 100 when clicked.
Z3i::SCell SCell
SetName3D(DGtal::int32_t aName=-1)

Definition at line 242 of file DrawWithDisplay3DModifier.h.

Constructor & Destructor Documentation

◆ SetName3D()

DGtal::SetName3D::SetName3D ( DGtal::int32_t  aName = -1)

Sets the "OpenGL name" of future display command(s).

aNameany integer: an identifier for later selection or -1 for none.

Definition at line 245 of file DrawWithDisplay3DModifier.h.

245 : name( aName ) {}
DGtal::int32_t name
the "OpenGL name" for selection, or -1 for none.

Member Function Documentation

◆ className()

std::string DGtal::SetName3D::className ( ) const
the class name as a string.

Definition at line 247 of file DrawWithDisplay3DModifier.h.

247 { return "SetName3D"; }

Field Documentation

◆ name

DGtal::int32_t DGtal::SetName3D::name

the "OpenGL name" for selection, or -1 for none.

Definition at line 249 of file DrawWithDisplay3DModifier.h.

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