DGtal 1.3.0
Loading...
Searching...
No Matches
Public Member Functions | Data Fields
DGtal::SetName3D Struct Reference

#include <DGtal/io/DrawWithDisplay3DModifier.h>

Inheritance diagram for DGtal::SetName3D:
DGtal::DrawWithDisplay3DModifier

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.
Represents a signed cell in a cellular grid space by its Khalimsky coordinates and a boolean value.
Examples
geometry/volumes/fullConvexityShortestPaths3D.cpp, and io/viewers/viewer3D-10-interaction.cpp.

Definition at line 242 of file DrawWithDisplay3DModifier.h.

Constructor & Destructor Documentation

◆ SetName3D()

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

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

Parameters
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
inline
Returns
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: