56 void apply(
float streangth);
69 virtual void prepareForRendering();
77 virtual void prepareForRendering();
81 std::vector<SceneObject *>
nodes;
88 std::vector<LineAnnotation*>
lines;
90 friend class ManipulatablePaperMouseHandler;
105 void prepareForRendering();
108 void addAttractor(
utils::Point coords,
bool oscillating=
false);
114 void removeAllAttractors();
117 void applyAllForces(
float attractorForce,
float mouseForce);
123 void setCubesVisible(
bool on);
126 void setTextureVisible(
bool on);
129 virtual void adaptRowStiffness(
float val,
int row);
132 virtual void adaptColStiffness(
float val,
int col);
135 virtual void adaptGlobalStiffness(
float val);
138 void removeAllLineAnnoations();
151 void removeAllAnnoations();
164 showAllConstraints =
show;
169 return showAllConstraints;
176 virtual void saveCFG(
const std::string &filename);
179 virtual void loadCFG(
const std::string &filename);
183 virtual void customRender();
194 m_shadow =
new Shadow(zLevel,
this);
195 addChild(m_shadow.
get());
std::vector< LineAnnotation * > lines
Definition: ManipulatablePaper.h:88
undocument this line if you encounter any issues!
Definition: Any.h:37
Definition: ManipulatablePaper.h:181
utils::Mutex attractorMutex
Definition: ManipulatablePaper.h:86
A physical world that handles physical objects.
Definition: PhysicsWorld.h:56
utils::Point idx
Definition: ManipulatablePaper.h:46
ICL Time class (taken from the Ice lib)
Definition: Time.h:52
DraggedPositionIndicator * draggedPositionIndicator
Definition: ManipulatablePaper.h:89
ManipulatablePaper * parent
Definition: ManipulatablePaper.h:51
utils::Point32f a
Definition: ManipulatablePaper.h:63
float zLevel
Definition: ManipulatablePaper.h:184
ManipulatablePaper * parent
Definition: ManipulatablePaper.h:185
utils::Point32f b
Definition: ManipulatablePaper.h:64
utils::Point32f p
Definition: ManipulatablePaper.h:75
PhysicsWorld * world
Definition: ManipulatablePaper.h:84
utils::Point32f getPaperCoordinates(const geom::ViewRay &ray)
finds the optimal paper coordinates for a given point in the world
Definition: ShaderUtil.h:47
This class represents cloth or paper like soft-body objects.
Definition: PhysicsPaper.h:51
Scene Implementation that is used to handle a list of objects and cameras.
Definition: Scene.h:138
Utility class for extra annotations, rendered in paper coordinates.
Definition: ManipulatablePaper.h:62
bool oscillating
Definition: ManipulatablePaper.h:49
T * get()
returns the pointer to the data
Definition: SmartPtrBase.h:345
void addShadow(float zLevel)
Definition: ManipulatablePaper.h:190
#define ICLPhysics_API
Definition: CompatMacros.h:181
bool getShowAllConstraints() const
returns whether constraints are shown
Definition: ManipulatablePaper.h:168
extension of the standard physical paper class
Definition: ManipulatablePaper.h:44
utils::Time time
Definition: ManipulatablePaper.h:47
MouseEvent Handler.
Definition: MouseHandler.h:92
Single precission 3D Vectors Point class of the ICL.
Definition: Point32f.h:41
Point class of the ICL used e.g. for the Images ROI offset.
Definition: Point.h:58
ICLQt_API void color(float r, float g=-1, float b=-1, float alpha=255)
sets the current color to given r,g,b,alpha value
Definition: ManipulatablePaper.h:73
Base class for Exception handling in the ICL.
Definition: Exception.h:42
geom::Scene * scene
Definition: ManipulatablePaper.h:85
std::vector< SceneObject * > nodes
Definition: ManipulatablePaper.h:81
geom::Scene * scene
Definition: ManipulatablePaper.h:50
ManipulatablePaper * parent
Definition: ManipulatablePaper.h:76
void setShowAllConstraints(bool show)
sets whether contraints are visualized
Definition: ManipulatablePaper.h:163
PhysicsPaper * parent
Definition: ManipulatablePaper.h:65
Mutex class of the ICL.
Definition: Mutex.h:54
utils::SmartPtr< qt::MouseHandler > mouse
Definition: ManipulatablePaper.h:87
Definition: ManipulatablePaper.h:45
ICLQt_API void show(const icl::core::ImgBase &image)
shows an image using TestImages::show
bool showAllConstraints
Definition: ManipulatablePaper.h:91
utils::SmartPtr< Shadow > m_shadow
Definition: ManipulatablePaper.h:188
Specialization of the SmartPtrBase class for Pointers.
Definition: SmartPtr.h:75
The SceneObject class defines visible objects in scenes or scene graph nodes.
Definition: SceneObject.h:140
AttractorMap attractors
Definition: ManipulatablePaper.h:83
std::map< std::string, VertexAttractor * > AttractorMap
Definition: ManipulatablePaper.h:82
geom::Vec startPos
Definition: ManipulatablePaper.h:48