DGtal 1.3.0
|
class to insert a custom 3D textured image by using a conversion functor and allows to change the default mode (GrayScale mode) to color mode. More...
#include <DGtal/io/viewers/DrawWithViewer3DModifier.h>
Public Types | |
typedef Viewer3D< Space, KSpace >::TextureMode | TTextureMode |
Public Member Functions | |
BOOST_CONCEPT_ASSERT ((concepts::CConstImage< TImageType >)) | |
AddTextureImage3DWithFunctor (ConstAlias< TImageType > anImage, Clone< TFunctor > aFunctor, TTextureMode aMode=TTextureMode::GrayScaleMode) | |
Public Member Functions inherited from DGtal::DrawWithViewer3DModifier | |
std::string | className () const |
Public Member Functions inherited from DGtal::DrawWithDisplay3DModifier | |
std::string | className () const |
Data Fields | |
const TImageType * | my3DImage |
const TFunctor | myFunctor |
TTextureMode | myMode |
class to insert a custom 3D textured image by using a conversion functor and allows to change the default mode (GrayScale mode) to color mode.
TImageType | the type of the used as texture (should follow the concept of CConstImage). |
TFunctor | the functor type to transform source image scalar value into the one of the image being displayed. |
A typical use can be illustrated by displaying a grayscale source image with artificial color defined from a colormap (see viewer3D-8-2DSliceImages.cpp viewer3D-9-3Dimages.cpp): We can first add a functor to convert grayscale value into RGB int:
Then you can define and add the object AddTextureImage2DWithFunctor in a viewer:
Definition at line 298 of file DrawWithViewer3DModifier.h.
typedef Viewer3D<Space,KSpace>::TextureMode DGtal::AddTextureImage3DWithFunctor< TImageType, TFunctor, Space, KSpace >::TTextureMode |
Definition at line 301 of file DrawWithViewer3DModifier.h.
|
inline |
Constructor given from an 2D image and a Functor to apply specific conversion.
Definition at line 306 of file DrawWithViewer3DModifier.h.
DGtal::AddTextureImage3DWithFunctor< TImageType, TFunctor, Space, KSpace >::BOOST_CONCEPT_ASSERT | ( | (concepts::CConstImage< TImageType >) | ) |
const TImageType* DGtal::AddTextureImage3DWithFunctor< TImageType, TFunctor, Space, KSpace >::my3DImage |
Definition at line 315 of file DrawWithViewer3DModifier.h.
const TFunctor DGtal::AddTextureImage3DWithFunctor< TImageType, TFunctor, Space, KSpace >::myFunctor |
Definition at line 316 of file DrawWithViewer3DModifier.h.
TTextureMode DGtal::AddTextureImage3DWithFunctor< TImageType, TFunctor, Space, KSpace >::myMode |
Definition at line 317 of file DrawWithViewer3DModifier.h.