Creator for objects operating on certain kinds of Grid objects, providing an interface for the function Fiber::hasProperty() .
More...
|
|
| 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).
|
| |
| 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) |
| |
|
| VCreator (const VCreatorProperty< ID > &CreatorProperties, int quality, const RefPtr< VCreationPreferences > &prop=nullptr, const char *const ReleaseIdentifier=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) |
| |
| virtual RefPtr< VObject > | create (const CreationInfo &name, const Intercube &CreationContext, const RefPtr< VCreationPreferences > &AdditionalPreferences=nullptr) const=0 |
| |
|
RefPtr< VObject > | create (const string &name={}, const RefPtr< VCreationPreferences > &AdditionalPreferences=nullptr) const |
| |
|
const VCreatorProperties & | getProperties () const |
| |
|
RefPtr< VCreationPreferences > | CreationPreferences (const RefPtr< VCreationPreferences > &AdditionalPreferences=nullptr) const |
| |
|
| VInputCreatorBase (const string &name, int prior, const RefPtr< VCreationPreferences > &prop, const char *vish_creator_release_identifier) |
| |
Public Member Functions inherited from Wizt::VManagedDomainObject< VInputCreatorBase > |
| const type_info & | getDomainType () const override |
| |
|
void | remove () |
| |
|
| VManagedDomainObject (const string &name, int priority=DEFAULT_PRIORITY) |
| |
|
string | getLoadModule () const |
| |
|
void | insert (const string &s, int priority=DEFAULT_PRIORITY) |
| |
|
void | remove () |
| |
|
void | setPriority (int priority) |
| |
|
| VManagedObject (const string &name, int priority=DEFAULT_PRIORITY) |
| |
|
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 |
| |
|
void | addInterface (const RefPtr< InterfaceBase > &I) const |
| |
|
void | addInterfaceData (const Data &D) |
| |
|
void | addInterfaceData (const Data &D) |
| |
|
void | clearInterfaces () |
| |
|
bool | const_iterateInterfaces (const RefPtr< InterfaceIterationParameter > &IIP) const |
| |
|
virtual RefPtr< InterfaceBase > | createInterface (const type_info &) const |
| |
|
RefPtr< InterfaceBase > | findInterface (const type_info &t) const |
| |
|
RefPtr< InterfaceBase > | getInterface (const type_info &t) |
| |
|
std::string | getInterfaceNames (const char delim=';') const |
| |
|
bool | gotNewInterfaceData (const Data &D) |
| |
|
bool | gotNewInterfaceData (mutex &M, const Data &D) |
| |
|
bool | gotNewInterfaceData (mutex &M, const Data &D) |
| |
|
bool | gotNewInterfaceData (mutex &M, const Data &D, const Selector &S) |
| |
|
bool | gotNewInterfaceData (mutex &M, const Data &D, const Selector *S) |
| |
|
bool | hasChangedInterfaceData (const Data &D) const |
| |
|
bool | hasChangedInterfaceData (const Data &D) const |
| |
|
bool | hasChangedInterfaceData (const Data &D, const Selector &) const |
| |
|
bool | hasChangedInterfaceData (const Data &D, const Selector *) const |
| |
|
bool | hasInterface (const type_info &t) const |
| |
|
bool | iterateInterfaces (const RefPtr< InterfaceIterationParameter > &IIP) |
| |
|
void | printInterfaces () const |
| |
|
void | registerInterface (const type_info &t) |
| |
|
void | removeInterface () |
| |
|
void | removeInterfaceBase (const type_info &InterfaceBaseID) |
| |
|
void | addNameChangeNotifier (const WeakPtr< Notifier > &) |
| |
|
std::string | BaseName (const char Separator) const |
| |
|
const std::string & | getName () const |
| |
|
| MutableName (const std::string &theName) |
| |
|
const std::string & | Name () const |
| |
|
void | rename (const std::string &newName) |
| |
|
void | setName (const std::string &newName) |
| |
|
| VCreatorProperties (const string &keyname, const string &Description="", const string &Operatorname="") |
| |
|
| VCreatorProperties (const VCreatorProperty< ID > &VP) |
| |
|
| VCreatorProperty (const string &name) |
| |
|
| VCreatorProperty (const VCreatorProperty< ID1 > &l, const VCreatorProperty< ID2 > &r) |
| |
|
| VCreatorProperty (const VCreatorProperty< ID1 > &vp) |
| |
|
string & | Application () |
| |
|
const string & | Application () const |
| |
|
string & | Arguments () |
| |
|
const string & | Arguments () const |
| |
|
void | assign (const VCreatorPropertyBase &l) |
| |
|
string | Author () const |
| |
|
string & | AuthorKey () |
| |
|
const string & | AuthorKey () const |
| |
|
string & | Category () |
| |
|
const string & | Category () const |
| |
|
string & | Description () |
| |
|
const string & | Description () const |
| |
|
string & | helpurl () |
| |
|
const string & | helpurl () const |
| |
|
string & | Identifier () |
| |
|
const string & | Identifier () const |
| |
|
string | keyname (const char separator[]="/") const |
| |
|
std::string & | operator() (unsigned i) |
| |
|
const string & | operator() (unsigned i) const |
| |
|
string & | OperatorName () |
| |
|
const string & | OperatorName () const |
| |
|
string & | shorthelp () |
| |
|
const string & | shorthelp () const |
| |
|
string & | SourceFile () |
| |
|
const string & | SourceFile () const |
| |
|
string & | url () |
| |
|
const string & | url () const |
| |
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:
struct MyGridInspector
{
{
}
};
static Ref<GridActor<MyGridInspector, LineSetOperationObject> >
An iterator with an optional DataCreator, which is just a class to intercept creation of data along a...
Definition CreativeIterator.hpp:34
A concrete Grid Property which looks for the existence of a Skeleton of the specified dimension and i...
Definition BundleProperty.hpp:76
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
struct MyGridInspector
{
{
bool checkSlice(
Slice&S,
const string&GridName)
const override
{
...
}
};
static MyProperty&InspectionProperty()
{
static MyProperty myProperty;
return myProperty;
}
};
Convenient abstract base class for inspecting and evaluating properties of Bundles.
Definition BundleProperty.hpp:21
Information per time slice, mainly a set of Grid objects that are accessed via GridID objects.
Definition Slice.hpp:36
To generically check for a specific Grid derive from the GridProperty class:
struct MyGridInspector
{
{
bool checkGrid(
const Grid&G)
const override
{
return true;
}
};
static const MyProperty&InspectionProperty()
{
static MyProperty myProperty;
return myProperty;
}
};
An abstract bundle property which returns true if a Grid with the property query as implemented in th...
Definition BundleProperty.hpp:59
A Grid is a set of Skeleton objects, each of them accessed via some unique SkeletonID object.
Definition Grid.hpp:60
- Note
- User code may #define VERBOSE_GRIDACTOR prior to any header file inclusion to enable printing of some informative messages when the GridActor evaluates objects and tries to find out if there is a match.
, Fiber::BundleProperty, Fiber::GridSelector