|
FiberVISH 0.2
Fish - The Fiber Bundle API for the Vish Visualization Shell
|
Possible implementation of a Transformation object via a std::function<>. More...
Public Member Functions | |
| MyTransformation (const std::function< point3(point3)> &doTransformPoint) | |
| RefPtr< MemBase > | transform (const RefPtr< MemBase > &MB, const RefPtr< CreativeArrayBase > &SourcePositionsFragment) const override |
Public Member Functions inherited from Fiber::Transformation | |
| virtual RefPtr< Field > | transform (const Field &F, const RefPtr< Field > &Positions) const |
| Transformation of an entire Field, where the Positions of the source coordinate system is provided unless transforming coordinates. | |
| virtual RefPtr< CreativeArrayBase > | transform (CreativeArrayBase &F, const RefPtr< CreativeArrayBase > &Positions) const |
| Transformation of a Field fragment, allowing to provide a customized Creator. | |
| virtual RefPtr< MemBase > | transform (const RefPtr< MemBase > &SourceData, const RefPtr< CreativeArrayBase > &SourcePositionsFragment) const =0 |
| Implementation of the actual coordinate transition, the function must yield the transformed field in the destination coordinate system. | |
Public Member Functions inherited from MemCore::ReferenceBase< Transformation > | |
| auto | getObjectCountID () const noexcept |
| bool | isIdentical (const WeakPtr< Object, Object > &PossibleSelf) const noexcept |
| void | mkAutoDestructive () |
| refcount_t | refcount () const noexcept |
| ReferenceBase (Object *that) noexcept | |
| const auto & | self () const |
| refcount_t | wrefcount () const noexcept |
Public Attributes | |
| std::function< point3(point3)> | TransformPoint |
Additional Inherited Members | |
Public Types inherited from MemCore::ReferenceBase< Transformation > | |
| typedef Object | reference_domain_t |
| typedef WeakPtr< Object, Object > | SelfPtr_t |
Protected Member Functions inherited from MemCore::ReferenceBase< Transformation > | |
| virtual void | extremeUnction () |
| ReferenceBase & | operator= (const ReferenceBase &R) |
| void | suicide () |
Possible implementation of a Transformation object via a std::function<>.
Mainly the transform() function needs to be overridden, using a functor object here is just one option that provides convenience when creating simple transformations, but direct implementation in the virtual function call may be more appropriate in other situations.