Go to the documentation of this file.
34 #ifndef vtkGraphItem_h
35 #define vtkGraphItem_h
37 #include "vtkViewsInfovisModule.h"
195 void *clientData,
void *callerData);
226 void operator=(
const vtkGraphItem&) VTK_DELETE_FUNCTION;
static vtkGraphItem * New()
virtual bool MouseWheelEvent(const vtkContextMouseEvent &event, int delta)
Mouse wheel event, positive delta indicates forward movement of the wheel.
virtual vtkVector2f VertexPosition(vtkIdType vertex)
Returns the position of each vertex.
data structure to represent mouse events.
virtual bool Hit(const vtkContextMouseEvent &event)
Whether this graph item is hit.
virtual void StopLayoutAnimation()
virtual bool MouseButtonReleaseEvent(const vtkContextMouseEvent &event)
Mouse button release event.
virtual vtkColor4ub VertexColor(vtkIdType vertex)
Returns the color of each vertex.
incremental force-directed layout.
virtual bool MouseButtonPressEvent(const vtkContextMouseEvent &event)
Mouse button down event Return true if the item holds the event, false if the event can be propagated...
virtual float EdgeWidth(vtkIdType edge, vtkIdType point)
Returns the edge width.
abstract base class for most VTK objects
virtual bool MouseLeaveEvent(const vtkContextMouseEvent &event)
Mouse leave event.
virtual vtkColor4ub EdgeColor(vtkIdType edge, vtkIdType point)
Returns the edge color.
Class for drawing 2D primitives to a graphical context.
virtual vtkIncrementalForceLayout * GetLayout()
Exposes the incremental graph layout for updating parameters.
virtual vtkVector2f EdgePosition(vtkIdType edge, vtkIdType point)
Returns the edge control point positions.
virtual bool MouseEnterEvent(const vtkContextMouseEvent &event)
Mouse enter event.
virtual bool MouseMoveEvent(const vtkContextMouseEvent &event)
Handle mouse events.
virtual void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual vtkIdType NumberOfEdgePoints(vtkIdType edge)
Returns the number of edge control points for a particular edge.
vtkTypeUInt64 vtkMTimeType
virtual void PaintBuffers(vtkContext2D *painter)
Efficiently draws the contents of the buffers built in RebuildBuffers.
virtual vtkStdString VertexTooltip(vtkIdType vertex)
Returns the tooltip for each vertex.
virtual vtkIdType NumberOfVertices()
Returns the number of vertices in the graph.
virtual bool Paint(vtkContext2D *painter)
Paints the graph.
virtual void StartLayoutAnimation(vtkRenderWindowInteractor *interactor)
Begins or ends the layout animation.
virtual void PlaceTooltip(vtkIdType v)
Change the position of the tooltip based on the vertex hovered.
static void ProcessEvents(vtkObject *caller, unsigned long event, void *clientData, void *callerData)
Process events and dispatch to the appropriate member functions.
virtual vtkIdType HitVertex(const vtkVector2f &pos)
Return index of hit vertex, or -1 if no hit.
topologically and geometrically regular array of data
a simple class to control print indentation
virtual void SetGraph(vtkGraph *graph)
The graph that this item draws.
virtual vtkIdType NumberOfEdges()
Returns the number of edges in the graph.
platform-independent render window interaction including picking and frame rate control.
virtual void RebuildBuffers()
Builds a cache of data from the graph by calling the virtual functions such as VertexColor(),...
base class for items that are part of a vtkContextScene.
virtual void UpdateLayout()
Incrementally updates the graph layout.
virtual float VertexSize(vtkIdType vertex)
Returns the vertex size in pixels, which is remains the same at any zoom level.
virtual int VertexMarker(vtkIdType vertex)
Returns the marker type for each vertex, as defined in vtkMarkerUtilities.
Wrapper around std::string to keep symbols short.
Base class for graph data types.
A 2D graphics item for rendering a graph.
virtual bool IsDirty()
Returns true if the underlying vtkGraph has been modified since the last RebuildBuffers,...