VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
vtkKCoreLayout Class Reference

Produces a layout for a graph labeled with K-Core information. More...

#include <vtkKCoreLayout.h>

Inheritance diagram for vtkKCoreLayout:
Inheritance graph
[legend]
Collaboration diagram for vtkKCoreLayout:
Collaboration graph
[legend]

Public Types

typedef vtkGraphAlgorithm Superclass
- Public Types inherited from vtkGraphAlgorithm
typedef vtkAlgorithm Superclass
- Public Types inherited from vtkAlgorithm
typedef vtkObject Superclass
- Public Types inherited from vtkObject
typedef vtkObjectBase Superclass

Public Member Functions

virtual const char * GetClassName ()
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent indent)
void SetGraphConnection (vtkAlgorithmOutput *)
 Convenience function provided for setting the graph input.
 vtkKCoreLayout ()
 ~vtkKCoreLayout ()
int FillInputPortInformation (int port, vtkInformation *info)
int RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
virtual void SetKCoreLabelArrayName (const char *)
virtual bool GetPolar ()
virtual void SetPolar (bool)
virtual void PolarOn ()
virtual void PolarOff ()
virtual bool GetCartesian ()
virtual void SetCartesian (bool)
virtual void CartesianOn ()
virtual void CartesianOff ()
virtual void SetPolarCoordsRadiusArrayName (const char *)
virtual char * GetPolarCoordsRadiusArrayName ()
virtual void SetPolarCoordsAngleArrayName (const char *)
virtual char * GetPolarCoordsAngleArrayName ()
virtual void SetCartesianCoordsXArrayName (const char *)
virtual char * GetCartesianCoordsXArrayName ()
virtual void SetCartesianCoordsYArrayName (const char *)
virtual char * GetCartesianCoordsYArrayName ()
virtual void SetEpsilon (float)
virtual float GetEpsilon ()
virtual void SetUnitRadius (float)
virtual float GetUnitRadius ()
- Public Member Functions inherited from vtkGraphAlgorithm
virtual int ProcessRequest (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkGraph * GetOutput ()
vtkGraph * GetOutput (int index)
void SetInput (vtkDataObject *obj)
void SetInput (int index, vtkDataObject *obj)
- Public Member Functions inherited from vtkAlgorithm
int HasExecutive ()
vtkExecutive * GetExecutive ()
virtual void SetExecutive (vtkExecutive *executive)
virtual int ModifyRequest (vtkInformation *request, int when)
vtkInformation * GetInputPortInformation (int port)
vtkInformation * GetOutputPortInformation (int port)
int GetNumberOfInputPorts ()
int GetNumberOfOutputPorts ()
void UpdateProgress (double amount)
vtkInformation * GetInputArrayInformation (int idx)
void RemoveAllInputs ()
vtkDataObject * GetOutputDataObject (int port)
virtual void RemoveInputConnection (int port, vtkAlgorithmOutput *input)
int GetNumberOfInputConnections (int port)
int GetTotalNumberOfInputConnections ()
vtkAlgorithmOutput * GetInputConnection (int port, int index)
virtual void Update ()
virtual void UpdateInformation ()
virtual void UpdateWholeExtent ()
void ConvertTotalInputToPortConnection (int ind, int &port, int &conn)
virtual double ComputePriority ()
int ProcessRequest (vtkInformation *request, vtkCollection *inInfo, vtkInformationVector *outInfo)
virtual int ComputePipelineMTime (vtkInformation *request, vtkInformationVector **inInfoVec, vtkInformationVector *outInfoVec, int requestFromOutputPort, unsigned long *mtime)
virtual vtkInformation * GetInformation ()
virtual void SetInformation (vtkInformation *)
virtual void Register (vtkObjectBase *o)
virtual void UnRegister (vtkObjectBase *o)
virtual void SetAbortExecute (int)
virtual int GetAbortExecute ()
virtual void AbortExecuteOn ()
virtual void AbortExecuteOff ()
virtual void SetProgress (double)
virtual double GetProgress ()
void SetProgressText (const char *ptext)
virtual char * GetProgressText ()
virtual unsigned long GetErrorCode ()
virtual void SetInputArrayToProcess (int idx, int port, int connection, int fieldAssociation, const char *name)
virtual void SetInputArrayToProcess (int idx, int port, int connection, int fieldAssociation, int fieldAttributeType)
virtual void SetInputArrayToProcess (int idx, vtkInformation *info)
virtual void SetInputArrayToProcess (int idx, int port, int connection, const char *fieldAssociation, const char *attributeTypeorName)
vtkDataObject * GetInputDataObject (int port, int connection)
virtual void SetInputConnection (int port, vtkAlgorithmOutput *input)
virtual void SetInputConnection (vtkAlgorithmOutput *input)
virtual void AddInputConnection (int port, vtkAlgorithmOutput *input)
virtual void AddInputConnection (vtkAlgorithmOutput *input)
vtkAlgorithmOutput * GetOutputPort (int index)
vtkAlgorithmOutput * GetOutputPort ()
virtual void SetReleaseDataFlag (int)
virtual int GetReleaseDataFlag ()
void ReleaseDataFlagOn ()
void ReleaseDataFlagOff ()
int UpdateExtentIsEmpty (vtkDataObject *output)
int UpdateExtentIsEmpty (vtkInformation *pinfo, int extentType)
- Public Member Functions inherited from vtkObject
virtual void DebugOn ()
virtual void DebugOff ()
unsigned char GetDebug ()
void SetDebug (unsigned char debugFlag)
virtual void Modified ()
virtual unsigned long GetMTime ()
unsigned long AddObserver (unsigned long event, vtkCommand *, float priority=0.0f)
unsigned long AddObserver (const char *event, vtkCommand *, float priority=0.0f)
vtkCommand * GetCommand (unsigned long tag)
void RemoveObserver (vtkCommand *)
void RemoveObservers (unsigned long event, vtkCommand *)
void RemoveObservers (const char *event, vtkCommand *)
int HasObserver (unsigned long event, vtkCommand *)
int HasObserver (const char *event, vtkCommand *)
void RemoveObserver (unsigned long tag)
void RemoveObservers (unsigned long event)
void RemoveObservers (const char *event)
void RemoveAllObservers ()
int HasObserver (unsigned long event)
int HasObserver (const char *event)
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f)
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
int InvokeEvent (unsigned long event, void *callData)
int InvokeEvent (const char *event, void *callData)
int InvokeEvent (unsigned long event)
int InvokeEvent (const char *event)
- Public Member Functions inherited from vtkObjectBase
const char * GetClassName () const
virtual void Delete ()
virtual void FastDelete ()
void Print (ostream &os)
void SetReferenceCount (int)
void PrintRevisions (ostream &os)
virtual void PrintHeader (ostream &os, vtkIndent indent)
virtual void PrintTrailer (ostream &os, vtkIndent indent)
int GetReferenceCount ()

Static Public Member Functions

static vtkKCoreLayout * New ()
static int IsTypeOf (const char *type)
static vtkKCoreLayout * SafeDownCast (vtkObject *o)

Protected Attributes

char * KCoreLabelArrayName
char * PolarCoordsRadiusArrayName
char * PolarCoordsAngleArrayName
char * CartesianCoordsXArrayName
char * CartesianCoordsYArrayName
bool Cartesian
bool Polar
float Epsilon
float UnitRadius

Additional Inherited Members

- Public Attributes inherited from vtkAlgorithm
int AbortExecute
- Protected Member Functions inherited from vtkGraphAlgorithm
 vtkGraphAlgorithm ()
 ~vtkGraphAlgorithm ()
virtual int RequestInformation (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
virtual int FillOutputPortInformation (int port, vtkInformation *info)
virtual int RequestUpdateExtent (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
virtual int RequestDataObject (vtkInformation *, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
- Static Protected Member Functions inherited from vtkAlgorithm
static vtkInformationIntegerKey * PORT_REQUIREMENTS_FILLED ()
- Static Protected Attributes inherited from vtkAlgorithm
static vtkExecutive * DefaultExecutivePrototype
- Friends inherited from vtkObject

Detailed Description

Produces a layout for a graph labeled with K-Core information.

vtkKCoreLayout creates coordinates for each vertex that can be used to perform a layout for a k-core view. Prerequisite: Vertices must have an attribute array containing their k-core number. This layout is based on the algorithm described in the paper: "k-core decomposition: a tool for the visualization of large scale networks", by Ignacio Alvarez-Hamelin et. al.

This graph algorithm appends either polar coordinates or cartesian coordinates as vertex attributes to the graph giving the position of the vertex in a layout. Input graphs must have the k-core number assigned to each vertex (default attribute array storing kcore numbers is "kcore").

Epsilon - this factor is used to adjust the amount vertices are 'pulled' out of their default ring radius based on the number of neighbors in higher cores. Default=0.2 UnitRadius - Tweaks the base unit radius value. Default=1.0

Still TODO: Still need to work on the connected-components within each shell and associated layout issues with that.

Input port 0: graph

Thanks:
Thanks to William McLendon from Sandia National Laboratories for providing this implementation.
Examples:
vtkKCoreLayout (Examples)
Tests:
vtkKCoreLayout (Tests)

Definition at line 63 of file vtkKCoreLayout.h.

Member Typedef Documentation

Definition at line 67 of file vtkKCoreLayout.h.

Constructor & Destructor Documentation

vtkKCoreLayout::vtkKCoreLayout ( )
vtkKCoreLayout::~vtkKCoreLayout ( )

Member Function Documentation

static vtkKCoreLayout* vtkKCoreLayout::New ( )
static

Create an object with Debug turned off, modified time initialized to zero, and reference counting on.

Reimplemented from vtkGraphAlgorithm.

virtual const char* vtkKCoreLayout::GetClassName ( )
virtual

Reimplemented from vtkGraphAlgorithm.

static int vtkKCoreLayout::IsTypeOf ( const char *  name)
static

Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkGraphAlgorithm.

virtual int vtkKCoreLayout::IsA ( const char *  name)
virtual

Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkGraphAlgorithm.

static vtkKCoreLayout* vtkKCoreLayout::SafeDownCast ( vtkObject *  o)
static

Reimplemented from vtkGraphAlgorithm.

void vtkKCoreLayout::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
virtual

Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from vtkGraphAlgorithm.

void vtkKCoreLayout::SetGraphConnection ( vtkAlgorithmOutput *  )

Convenience function provided for setting the graph input.

int vtkKCoreLayout::FillInputPortInformation ( int  port,
vtkInformation *  info 
)
virtual

Fill the input port information objects for this algorithm. This is invoked by the first call to GetInputPortInformation for each port so subclasses can specify what they can handle.

Reimplemented from vtkGraphAlgorithm.

virtual void vtkKCoreLayout::SetKCoreLabelArrayName ( const char *  )
virtual

Set the name of the vertex attribute array storing k-core labels. Default: kcore

virtual bool vtkKCoreLayout::GetPolar ( )
virtual

Output polar coordinates for vertices if True. Default column names are coord_radius, coord_angle. Default: False

virtual void vtkKCoreLayout::SetPolar ( bool  )
virtual

Output polar coordinates for vertices if True. Default column names are coord_radius, coord_angle. Default: False

virtual void vtkKCoreLayout::PolarOn ( )
virtual

Output polar coordinates for vertices if True. Default column names are coord_radius, coord_angle. Default: False

virtual void vtkKCoreLayout::PolarOff ( )
virtual

Output polar coordinates for vertices if True. Default column names are coord_radius, coord_angle. Default: False

virtual bool vtkKCoreLayout::GetCartesian ( )
virtual

Set whether or not to convert output to cartesian coordinates. If false, coordinates will be returned in polar coordinates (radius, angle). Default: True

virtual void vtkKCoreLayout::SetCartesian ( bool  )
virtual

Set whether or not to convert output to cartesian coordinates. If false, coordinates will be returned in polar coordinates (radius, angle). Default: True

virtual void vtkKCoreLayout::CartesianOn ( )
virtual

Set whether or not to convert output to cartesian coordinates. If false, coordinates will be returned in polar coordinates (radius, angle). Default: True

virtual void vtkKCoreLayout::CartesianOff ( )
virtual

Set whether or not to convert output to cartesian coordinates. If false, coordinates will be returned in polar coordinates (radius, angle). Default: True

virtual void vtkKCoreLayout::SetPolarCoordsRadiusArrayName ( const char *  )
virtual

Polar coordinates array name for radius values. This is only used if OutputCartesianCoordinates is False. Default: coord_radius

virtual char* vtkKCoreLayout::GetPolarCoordsRadiusArrayName ( )
virtual

Polar coordinates array name for radius values. This is only used if OutputCartesianCoordinates is False. Default: coord_radius

virtual void vtkKCoreLayout::SetPolarCoordsAngleArrayName ( const char *  )
virtual

Polar coordinates array name for angle values in radians. This is only used if OutputCartesianCoordinates is False. Default: coord_angle

virtual char* vtkKCoreLayout::GetPolarCoordsAngleArrayName ( )
virtual

Polar coordinates array name for angle values in radians. This is only used if OutputCartesianCoordinates is False. Default: coord_angle

virtual void vtkKCoreLayout::SetCartesianCoordsXArrayName ( const char *  )
virtual

Cartesian coordinates array name for the X coordinates. This is only used if OutputCartesianCoordinates is True. Default: coord_x

virtual char* vtkKCoreLayout::GetCartesianCoordsXArrayName ( )
virtual

Cartesian coordinates array name for the X coordinates. This is only used if OutputCartesianCoordinates is True. Default: coord_x

virtual void vtkKCoreLayout::SetCartesianCoordsYArrayName ( const char *  )
virtual

Cartesian coordinates array name for the Y coordinates. This is only used if OutputCartesianCoordinates is True. Default: coord_y

virtual char* vtkKCoreLayout::GetCartesianCoordsYArrayName ( )
virtual

Cartesian coordinates array name for the Y coordinates. This is only used if OutputCartesianCoordinates is True. Default: coord_y

virtual void vtkKCoreLayout::SetEpsilon ( float  )
virtual

Epsilon value used in the algorithm. Default = 0.2

virtual float vtkKCoreLayout::GetEpsilon ( )
virtual

Epsilon value used in the algorithm. Default = 0.2

virtual void vtkKCoreLayout::SetUnitRadius ( float  )
virtual

Unit Radius value used in the algorithm. Default = 1.0

virtual float vtkKCoreLayout::GetUnitRadius ( )
virtual

Unit Radius value used in the algorithm. Default = 1.0

int vtkKCoreLayout::RequestData ( vtkInformation *  request,
vtkInformationVector **  inputVector,
vtkInformationVector *  outputVector 
)
virtual

This is called by the superclass. This is the method you should override.

Reimplemented from vtkGraphAlgorithm.

Member Data Documentation

char* vtkKCoreLayout::KCoreLabelArrayName
protected

Definition at line 146 of file vtkKCoreLayout.h.

char* vtkKCoreLayout::PolarCoordsRadiusArrayName
protected

Definition at line 148 of file vtkKCoreLayout.h.

char* vtkKCoreLayout::PolarCoordsAngleArrayName
protected

Definition at line 149 of file vtkKCoreLayout.h.

char* vtkKCoreLayout::CartesianCoordsXArrayName
protected

Definition at line 151 of file vtkKCoreLayout.h.

char* vtkKCoreLayout::CartesianCoordsYArrayName
protected

Definition at line 152 of file vtkKCoreLayout.h.

bool vtkKCoreLayout::Cartesian
protected

Definition at line 154 of file vtkKCoreLayout.h.

bool vtkKCoreLayout::Polar
protected

Definition at line 155 of file vtkKCoreLayout.h.

float vtkKCoreLayout::Epsilon
protected

Definition at line 157 of file vtkKCoreLayout.h.

float vtkKCoreLayout::UnitRadius
protected

Definition at line 158 of file vtkKCoreLayout.h.


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