|
Fish - FiberLib for VISH 0.3
Fish - The Fiber Bundle API for the Vish Visualization Shell
|
Creator for objects operating on certain kinds of Grid objects, providing an interface for the function Fiber::hasProperty() . More...
#include <GridActor.hpp>
Public Types | |
| typedef VCreator< CreativeObject, AcceptList< Fiber::Grid > > | Base_t |
Public Member Functions | |
| GridActor (const std::string &name, int quality, const RefPtr< VCreationPreferences > &VP=nullptr, const char *const CreatorReleaseIdentifier=VISH_INPUT_CREATOR_RELEASE_IDENTIFIER) | |
| Construct grid actor from name and quality description. | |
| template<unsigned ID> | |
| GridActor (const VCreatorProperty< ID > &CreatorProperties, int quality, const RefPtr< VCreationPreferences > &VP=nullptr, const char *const CreatorReleaseIdentifier=VISH_INPUT_CREATOR_RELEASE_IDENTIFIER) | |
| Construct grid actor from creation properties. | |
| VAcceptInfoList_t | accept (const RefPtr< VObject > &vobj) const override |
| Acceptance function: check whether a grid exists with a Skeleton of type (1,1) (dimensionality one, index depth one -> edges). | |
| Public Member Functions inherited from Wizt::VCreator< void, AcceptList< Fiber::Grid > > | |
| VAcceptInfoList_t | accept (const RefPtr< VObject > &vobj) const override |
| RefPtr< VObject > | create (const VCreatorBase::CreationInfo &name, const Intercube &CreationContext, const RefPtr< VCreationPreferences > &AdditionalPreferences) const override |
| string | createChildname (const string &parent_name) const override |
| VCreator (const VCreatorProperties &CreatorProperties, int quality, const RefPtr< VCreationPreferences > &prop=nullptr, const char *const CreatorReleaseIdentifier=VISH_CREATOR_RELEASE_IDENTIFIER) | |
| VCreatorProperty< ID1+ID2 > | operator+ (const VCreatorProperty< ID1 > &l, const VCreatorProperty< ID2 > &r) |
| VCreatorProperty< ID1+ID2 > | operator/ (const VCreatorProperty< ID1 > &l, const VCreatorProperty< ID2 > &r) |
Creator for objects operating on certain kinds of Grid objects, providing an interface for the function Fiber::hasProperty() .
This template class provides a VCreator which requires input objects to provide Fiber::Grid objects that fulfull certain conditions, such as being a triangular surface or a set of lines.
Such conditions are formulated as a Fiber::BundleProperty, this template is a convenience helper class for VCreator objects that maps BundleProperty objects to VCreator acceptance functions.
For instance, one possible property to look for in a Grid object is the existence of a specific Skeleton. This property is modeled via a SkeletonExistence object. Code for objects operating on LineSets would look like this:
Note that the function MyGridInspector::InspectionProperty() may return any object that is derived from class Fiber::BundleProperty and is accepted by Fiber::hasProperty(). For instance, a generic property may be defined as
To generically check for a specific Grid derive from the GridProperty class: