The Vish Visualization Shell 0.3
Vish
Public Member Functions | List of all members
Wizt::TouchList Class Reference

Abstract base class for objects that can be touched. More...

#include <ocean/Anemonia/VTouchable.hpp>

Inheritance diagram for Wizt::TouchList:
MemCore::Chunk< TouchResult_t > MemCore::TypedChunk< T >

Public Member Functions

TouchResult_t operator() (double RadialWeight=0.0) const
 Get the touch result weighted around the center.
 
const TouchResult_t & operator() (int x, int y) const
 Access the touch result at a certain pixel.
 
int pickAction (int D=0) const
 Perform a Pick Action for all elements around the central pixel with a square distance as given by D.
 
- Public Member Functions inherited from MemCore::Chunk< TouchResult_t >
const base_vector_type & base_vector () const override
 Implement virtual base class function to yield constant vector of base elements. Internally uses ugly reinterpret_cast<> of STL vectors.
 
base_vector_type & base_vector () override
 Implement virtual base class function to yield vector of base elements. Internally uses ugly reinterpret_cast<> of STL vectors.
 
 Chunk (const Filler &, const TouchResult_t &FillValue, size_t N=1)
 Constructor allocates a chunk of data.
 
 Chunk (const std::string &buffer)
 Construct a chunk of data from a character set.
 
 Chunk (const std::vector< TouchResult_t > &SourceValues)
 Copy values.
 
 Chunk (size_t N, bool ReserveOnly=false)
 Constructor allocates a chunk of data.
 
TouchResult_t * operator() ()
 Use function call operator to get the actual data pointer Note that this function returns 0 if the data type is not addressible via a pointer, for instance a boolean.
 
- Public Member Functions inherited from MemCore::TypedChunk< T >
std::vector< T > & get_vector ()
 Get a STL vector of element types, it can be modified.
 
const std::vector< T > & get_vector () const
 Get a const STL vector of element types, only for read access.
 

Additional Inherited Members

- Protected Member Functions inherited from MemCore::Chunk< TouchResult_t >
 ~Chunk ()
 Destructor deletes the data pointer.
 

Detailed Description

Abstract base class for objects that can be touched.

Author
Werner Benger

Member Function Documentation

◆ pickAction()

int Wizt::TouchList::pickAction ( int  D = 0) const

Perform a Pick Action for all elements around the central pixel with a square distance as given by D.

Todo:
Maybe pass Context/ValuePool as parameter here
Returns
The number of items that successfully performed the pickAction.