VTK
|
Superclass for label rendering implementations. More...
#include <vtkLabelRenderStrategy.h>
Superclass for label rendering implementations.
These methods should only be called within a mapper.
Definition at line 35 of file vtkLabelRenderStrategy.h.
Reimplemented from vtkObject.
Reimplemented in vtkQtLabelRenderStrategy, and vtkFreeTypeLabelRenderStrategy.
Definition at line 39 of file vtkLabelRenderStrategy.h.
vtkLabelRenderStrategy::vtkLabelRenderStrategy | ( | ) | [protected] |
vtkLabelRenderStrategy::~vtkLabelRenderStrategy | ( | ) | [protected] |
void vtkLabelRenderStrategy::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 vtkObject.
Reimplemented in vtkQtLabelRenderStrategy, and vtkFreeTypeLabelRenderStrategy.
static int vtkLabelRenderStrategy::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 vtkObject.
Reimplemented in vtkQtLabelRenderStrategy, and vtkFreeTypeLabelRenderStrategy.
virtual int vtkLabelRenderStrategy::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 vtkObject.
Reimplemented in vtkQtLabelRenderStrategy, and vtkFreeTypeLabelRenderStrategy.
static vtkLabelRenderStrategy* vtkLabelRenderStrategy::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkObject.
Reimplemented in vtkQtLabelRenderStrategy, and vtkFreeTypeLabelRenderStrategy.
virtual vtkObjectBase* vtkLabelRenderStrategy::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkObject.
Reimplemented in vtkQtLabelRenderStrategy, and vtkFreeTypeLabelRenderStrategy.
Reimplemented from vtkObject.
Reimplemented in vtkQtLabelRenderStrategy, and vtkFreeTypeLabelRenderStrategy.
virtual bool vtkLabelRenderStrategy::SupportsRotation | ( | ) | [inline, virtual] |
Whether the text rendering strategy supports rotation. The superclass returns true. Subclasses should override this to return the appropriate value.
Reimplemented in vtkFreeTypeLabelRenderStrategy.
Definition at line 45 of file vtkLabelRenderStrategy.h.
virtual bool vtkLabelRenderStrategy::SupportsBoundedSize | ( | ) | [inline, virtual] |
Whether the text rendering strategy supports bounded size. The superclass returns true. Subclasses should override this to return the appropriate value. Subclasses that return true from this method should implement the version of RenderLabel() that takes a maximum size (see RenderLabel()).
Reimplemented in vtkFreeTypeLabelRenderStrategy.
Definition at line 55 of file vtkLabelRenderStrategy.h.
virtual void vtkLabelRenderStrategy::SetRenderer | ( | vtkRenderer * | ren | ) | [virtual] |
Set the renderer associated with this strategy.
virtual vtkRenderer* vtkLabelRenderStrategy::GetRenderer | ( | ) | [virtual] |
Set the renderer associated with this strategy.
virtual void vtkLabelRenderStrategy::SetDefaultTextProperty | ( | vtkTextProperty * | tprop | ) | [virtual] |
Set the default text property for the strategy.
virtual vtkTextProperty* vtkLabelRenderStrategy::GetDefaultTextProperty | ( | ) | [virtual] |
Set the default text property for the strategy.
virtual void vtkLabelRenderStrategy::ComputeLabelBounds | ( | vtkTextProperty * | tprop, |
vtkStdString | label, | ||
double | bds[4] | ||
) | [inline, virtual] |
Compute the bounds of a label. Must be performed after the renderer is set. Only the unicode string version must be implemented in subclasses.
Reimplemented in vtkFreeTypeLabelRenderStrategy, and vtkQtLabelRenderStrategy.
Definition at line 75 of file vtkLabelRenderStrategy.h.
virtual void vtkLabelRenderStrategy::ComputeLabelBounds | ( | vtkTextProperty * | tprop, |
vtkUnicodeString | label, | ||
double | bds[4] | ||
) | [pure virtual] |
Compute the bounds of a label. Must be performed after the renderer is set. Only the unicode string version must be implemented in subclasses.
Implemented in vtkQtLabelRenderStrategy, and vtkFreeTypeLabelRenderStrategy.
virtual void vtkLabelRenderStrategy::RenderLabel | ( | int | x[2], |
vtkTextProperty * | tprop, | ||
vtkStdString | label | ||
) | [inline, virtual] |
Render a label at a location in display coordinates. Must be performed between StartFrame() and EndFrame() calls. Only the unicode string version must be implemented in subclasses. The optional final parameter maxWidth specifies a maximum width for the label. Longer labels can be shorted with an ellipsis (...). Only renderer strategies that return true from SupportsBoundedSize must implement this version of th method.
Reimplemented in vtkQtLabelRenderStrategy, and vtkFreeTypeLabelRenderStrategy.
Definition at line 91 of file vtkLabelRenderStrategy.h.
virtual void vtkLabelRenderStrategy::RenderLabel | ( | int | x[2], |
vtkTextProperty * | tprop, | ||
vtkStdString | label, | ||
int | maxWidth | ||
) | [inline, virtual] |
Render a label at a location in display coordinates. Must be performed between StartFrame() and EndFrame() calls. Only the unicode string version must be implemented in subclasses. The optional final parameter maxWidth specifies a maximum width for the label. Longer labels can be shorted with an ellipsis (...). Only renderer strategies that return true from SupportsBoundedSize must implement this version of th method.
Reimplemented in vtkQtLabelRenderStrategy, and vtkFreeTypeLabelRenderStrategy.
Definition at line 93 of file vtkLabelRenderStrategy.h.
virtual void vtkLabelRenderStrategy::RenderLabel | ( | int | x[2], |
vtkTextProperty * | tprop, | ||
vtkUnicodeString | label | ||
) | [pure virtual] |
Render a label at a location in display coordinates. Must be performed between StartFrame() and EndFrame() calls. Only the unicode string version must be implemented in subclasses. The optional final parameter maxWidth specifies a maximum width for the label. Longer labels can be shorted with an ellipsis (...). Only renderer strategies that return true from SupportsBoundedSize must implement this version of th method.
Implemented in vtkQtLabelRenderStrategy, and vtkFreeTypeLabelRenderStrategy.
virtual void vtkLabelRenderStrategy::RenderLabel | ( | int | x[2], |
vtkTextProperty * | tprop, | ||
vtkUnicodeString | label, | ||
int | vtkNotUsedmaxWidth | ||
) | [inline, virtual] |
Render a label at a location in display coordinates. Must be performed between StartFrame() and EndFrame() calls. Only the unicode string version must be implemented in subclasses. The optional final parameter maxWidth specifies a maximum width for the label. Longer labels can be shorted with an ellipsis (...). Only renderer strategies that return true from SupportsBoundedSize must implement this version of th method.
Definition at line 98 of file vtkLabelRenderStrategy.h.
virtual void vtkLabelRenderStrategy::StartFrame | ( | ) | [inline, virtual] |
Start a rendering frame. Renderer must be set.
Reimplemented in vtkQtLabelRenderStrategy.
Definition at line 104 of file vtkLabelRenderStrategy.h.
virtual void vtkLabelRenderStrategy::EndFrame | ( | ) | [inline, virtual] |
End a rendering frame.
Reimplemented in vtkQtLabelRenderStrategy.
Definition at line 107 of file vtkLabelRenderStrategy.h.
virtual void vtkLabelRenderStrategy::ReleaseGraphicsResources | ( | vtkWindow * | ) | [inline, virtual] |
Release any graphics resources that are being consumed by this strategy. The parameter window could be used to determine which graphic resources to release.
Reimplemented in vtkQtLabelRenderStrategy, and vtkFreeTypeLabelRenderStrategy.
Definition at line 112 of file vtkLabelRenderStrategy.h.
vtkRenderer* vtkLabelRenderStrategy::Renderer [protected] |
Definition at line 118 of file vtkLabelRenderStrategy.h.
Definition at line 119 of file vtkLabelRenderStrategy.h.