Inviwo  0.9.10.1
Inviwo documentation
inviwo::IsoValueCollection Class Reference

data structure representing isovalues More...

#include <isovaluecollection.h>

+ Inheritance diagram for inviwo::IsoValueCollection:

Public Member Functions

 IsoValueCollection (const std::vector< TFPrimitiveData > &values={}, TFPrimitiveSetType type=TFPrimitiveSetType::Relative)
 
 IsoValueCollection (const IsoValueCollection &rhs)=default
 
 IsoValueCollection (IsoValueCollection &&rhs)=default
 
IsoValueCollectionoperator= (const IsoValueCollection &rhs)=default
 
virtual std::vector< FileExtensiongetSupportedExtensions () const override
 
virtual void save (const std::string &filename, const FileExtension &ext=FileExtension()) const override
 
virtual void load (const std::string &filename, const FileExtension &ext=FileExtension()) override
 
virtual std::string getTitle () const override
 
- Public Member Functions inherited from inviwo::TFPrimitiveSet
 TFPrimitiveSet (const std::vector< TFPrimitiveData > &values={}, TFPrimitiveSetType type=TFPrimitiveSetType::Relative)
 
 TFPrimitiveSet (const TFPrimitiveSet &rhs)
 
 TFPrimitiveSet (TFPrimitiveSet &&rhs)=default
 
TFPrimitiveSetoperator= (const TFPrimitiveSet &rhs)
 
void setType (TFPrimitiveSetType type)
 
TFPrimitiveSetType getType () const
 
dvec2 getRange () const
 
size_t size () const
 
bool empty () const
 
TFPrimitiveoperator[] (size_t i)
 
const TFPrimitiveoperator[] (size_t i) const
 
TFPrimitiveget (size_t i)
 
const TFPrimitiveget (size_t i) const
 
TFPrimitivefront ()
 
const TFPrimitivefront () const
 
TFPrimitiveback ()
 
const TFPrimitiveback () const
 
iterator begin ()
 
iterator end ()
 
const_iterator begin () const
 
const_iterator end () const
 
const_iterator cbegin () const
 
const_iterator cend () const
 
std::vector< TFPrimitiveDataget () const
 
std::vector< TFPrimitiveDatagetUnsorted () const
 
void set (const_iterator begin, const_iterator end)
 
std::pair< std::vector< double >, std::vector< vec4 > > getVectors () const
 
std::pair< std::vector< float >, std::vector< vec4 > > getVectorsf () const
 
void add (const TFPrimitive &primitive)
 
void add (double pos, const vec4 &color)
 
void add (const dvec2 &pos)
 
void add (const TFPrimitiveData &data)
 
void add (const std::vector< TFPrimitiveData > &primitives)
 
bool remove (const TFPrimitive &primitive)
 
void clear ()
 
void setPosition (const std::vector< TFPrimitive * > primitives, double pos)
 
void setAlpha (const std::vector< TFPrimitive * > primitives, double alpha)
 
void setColor (const std::vector< TFPrimitive * > primitives, const vec3 &color)
 
virtual void onTFPrimitiveChange (const TFPrimitive &p) override
 
virtual void serialize (Serializer &s) const override
 
virtual void deserialize (Deserializer &d) override
 
virtual void invalidate ()
 
void interpolateAndStoreColors (vec4 *dataArray, const size_t size) const
 
void flipPositions (const std::vector< TFPrimitive * > &primitives={})
 
void interpolateAlpha (const std::vector< TFPrimitive * > &primitives={})
 
void equalizeAlpha (const std::vector< TFPrimitive * > &primitives={})
 
- Public Member Functions inherited from inviwo::Observable< TFPrimitiveSetObserver >
 Observable (const Observable< TFPrimitiveSetObserver > &other)
 
 Observable (Observable< TFPrimitiveSetObserver > &&other)
 
Observable< TFPrimitiveSetObserver > & operator= (const Observable< TFPrimitiveSetObserver > &other)
 
Observable< TFPrimitiveSetObserver > & operator= (Observable< TFPrimitiveSetObserver > &&other)
 
void addObserver (TFPrimitiveSetObserver *observer)
 
void removeObserver (TFPrimitiveSetObserver *observer)
 
virtual void startBlockingNotifications () override final
 
virtual void stopBlockingNotifications () override final
 
- Public Member Functions inherited from inviwo::Observer
 Observer (const Observer &other)
 
 Observer (Observer &&other)
 
Observeroperator= (Observer &&other)
 
Observeroperator= (const Observer &other)
 
virtual ~Observer ()
 
void removeObservation (ObservableInterface *observable)
 
void removeObservations ()
 

Protected Member Functions

virtual std::string serializationKey () const override
 
virtual std::string serializationItemKey () const override
 
- Protected Member Functions inherited from inviwo::TFPrimitiveSet
void add (std::unique_ptr< TFPrimitive > primitive)
 
bool remove (std::vector< std::unique_ptr< TFPrimitive >>::iterator it)
 
void sort ()
 
vec4 interpolateColor (double t) const
 
- Protected Member Functions inherited from inviwo::TFPrimitiveSetObservable
void notifyTFPrimitiveAdded (TFPrimitive &p)
 
void notifyTFPrimitiveRemoved (TFPrimitive &p)
 
void notifyTFPrimitiveChanged (const TFPrimitive &p)
 
void notifyTFTypeChanged (const TFPrimitiveSet &primitiveSet)
 
- Protected Member Functions inherited from inviwo::Observable< TFPrimitiveSetObserver >
void forEachObserver (C callback)
 
- Protected Member Functions inherited from inviwo::ObservableInterface
void addObservationHelper (Observer *observer)
 
void removeObservationHelper (Observer *observer)
 
- Protected Member Functions inherited from inviwo::Observer
void addObservation (ObservableInterface *observable)
 

Additional Inherited Members

- Public Types inherited from inviwo::TFPrimitiveSet
using transform_t = TFPrimitive &(*)(TFPrimitive *)
 
using const_transform_t = const TFPrimitive &(*)(const TFPrimitive *)
 
using iterator = util::TransformIterator< transform_t, typename std::vector< TFPrimitive * >::iterator >
 
using const_iterator = util::TransformIterator< const_transform_t, typename std::vector< TFPrimitive * >::const_iterator >
 
- Protected Types inherited from inviwo::Observer
using ObservableSet = std::unordered_set< ObservableInterface * >
 
- Protected Attributes inherited from inviwo::TFPrimitiveSet
std::vector< std::unique_ptr< TFPrimitive > > values_
 
std::vector< TFPrimitive * > sorted_
 
- Protected Attributes inherited from inviwo::Observer
ObservableSet observables_
 

Detailed Description

data structure representing isovalues

See also
IsoValue

The documentation for this class was generated from the following files: