DGtal 1.3.0
Loading...
Searching...
No Matches
Public Member Functions | Data Fields
DGtal::UpdateImageData< TImageType, TFunctor > Struct Template Reference

class to modify the data of an given image and also the possibility to translate it (optional). More...

#include <DGtal/io/viewers/DrawWithViewer3DModifier.h>

Inheritance diagram for DGtal::UpdateImageData< TImageType, TFunctor >:
DGtal::DrawWithViewer3DModifier DGtal::DrawWithDisplay3DModifier

Public Member Functions

 UpdateImageData (unsigned int anIndex, ConstAlias< TImageType > anImage, double translateX=0, double translateY=0, double translateZ=0, double rotationAngle=0.0, typename Viewer3D<>::ImageDirection dirRotation=Viewer3D<>::zDirection, Clone< TFunctor > aFunctor=TFunctor())
 
- Public Member Functions inherited from DGtal::DrawWithViewer3DModifier
std::string className () const
 
- Public Member Functions inherited from DGtal::DrawWithDisplay3DModifier
std::string className () const
 

Data Fields

unsigned int myIndex
 
const TImageType * myImage
 
int myTranslateX
 
int myTranslateY
 
int myTranslateZ
 
const TFunctor myFunctor
 
double myRotationAngle
 
Viewer3D ::ImageDirection myRotationDir
 

Detailed Description

template<typename TImageType, typename TFunctor = functors::Cast<unsigned int>>
struct DGtal::UpdateImageData< TImageType, TFunctor >

class to modify the data of an given image and also the possibility to translate it (optional).

Definition at line 365 of file DrawWithViewer3DModifier.h.

Constructor & Destructor Documentation

◆ UpdateImageData()

template<typename TImageType , typename TFunctor = functors::Cast<unsigned int>>
DGtal::UpdateImageData< TImageType, TFunctor >::UpdateImageData ( unsigned int  anIndex,
ConstAlias< TImageType >  anImage,
double  translateX = 0,
double  translateY = 0,
double  translateZ = 0,
double  rotationAngle = 0.0,
typename Viewer3D<>::ImageDirection  dirRotation = Viewer3D<>::zDirection,
Clone< TFunctor >  aFunctor = TFunctor() 
)
inline

Constructor given from an specific image index, a new image (should be of dimension 2 and with the same size than the orginal), and a possible (optional translation).

Parameters
anIndexthe index of the image to be modified (should be less than the number of image added in the current Viewer3D).
anImagethe new image which will be used to update the source image data.
translateXthe x translation value.
translateYthe y translation value.
translateZthe y translation value.
rotationAnglethe angle of rotation.
dirRotationthe rotation is applyed arount the given direction (default zDirection).
aFunctora functor.

Definition at line 382 of file DrawWithViewer3DModifier.h.

385 : myIndex(anIndex),
386 myImage(&anImage),
387 myTranslateX (translateX),
388 myTranslateY (translateY),
389 myTranslateZ (translateZ),
390 myFunctor(aFunctor),
391 myRotationAngle(rotationAngle),
392 myRotationDir(dirRotation)
393 {}
Viewer3D ::ImageDirection myRotationDir

Field Documentation

◆ myFunctor

template<typename TImageType , typename TFunctor = functors::Cast<unsigned int>>
const TFunctor DGtal::UpdateImageData< TImageType, TFunctor >::myFunctor

Definition at line 400 of file DrawWithViewer3DModifier.h.

◆ myImage

template<typename TImageType , typename TFunctor = functors::Cast<unsigned int>>
const TImageType* DGtal::UpdateImageData< TImageType, TFunctor >::myImage

Definition at line 396 of file DrawWithViewer3DModifier.h.

◆ myIndex

template<typename TImageType , typename TFunctor = functors::Cast<unsigned int>>
unsigned int DGtal::UpdateImageData< TImageType, TFunctor >::myIndex

Definition at line 395 of file DrawWithViewer3DModifier.h.

◆ myRotationAngle

template<typename TImageType , typename TFunctor = functors::Cast<unsigned int>>
double DGtal::UpdateImageData< TImageType, TFunctor >::myRotationAngle

Definition at line 401 of file DrawWithViewer3DModifier.h.

◆ myRotationDir

template<typename TImageType , typename TFunctor = functors::Cast<unsigned int>>
Viewer3D ::ImageDirection DGtal::UpdateImageData< TImageType, TFunctor >::myRotationDir

Definition at line 402 of file DrawWithViewer3DModifier.h.

◆ myTranslateX

template<typename TImageType , typename TFunctor = functors::Cast<unsigned int>>
int DGtal::UpdateImageData< TImageType, TFunctor >::myTranslateX

Definition at line 397 of file DrawWithViewer3DModifier.h.

◆ myTranslateY

template<typename TImageType , typename TFunctor = functors::Cast<unsigned int>>
int DGtal::UpdateImageData< TImageType, TFunctor >::myTranslateY

Definition at line 398 of file DrawWithViewer3DModifier.h.

◆ myTranslateZ

template<typename TImageType , typename TFunctor = functors::Cast<unsigned int>>
int DGtal::UpdateImageData< TImageType, TFunctor >::myTranslateZ

Definition at line 399 of file DrawWithViewer3DModifier.h.


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