Inviwo 0.9.12-pre
Inviwo documentation
Loading...
Searching...
No Matches
inviwo::LineSettings Class Reference

Basic implementation of the LineSettingsInterface. More...

#include <linesettings.h>

+ Inheritance diagram for inviwo::LineSettings:

Public Member Functions

 LineSettings (const LineSettingsInterface *other)
 
virtual float getWidth () const override
 
virtual float getAntialiasingWidth () const override
 
virtual float getMiterLimit () const override
 
virtual bool getRoundCaps () const override
 
virtual bool getPseudoLighting () const override
 
virtual bool getRoundDepthProfile () const override
 
virtual vec4 getDefaultColor () const override
 
virtual const StipplingSettingsInterfacegetStippling () const override
 
virtual bool getOverrideColor () const override
 
virtual vec3 getOverrideColorValue () const override
 
virtual bool getOverrideAlpha () const override
 
virtual float getOverrideAlphaValue () const override
 
virtual bool getUseMetaColor () const override
 
virtual const TransferFunctiongetMetaColor () const override
 
- Public Member Functions inherited from inviwo::LineSettingsInterface

Public Attributes

float lineWidth = 1.f
 
float antialiasing = 0.5f
 
float miterLimit = 0.8f
 
bool roundCaps = true
 
bool pseudoLighting = false
 
bool roundDepthProfile = false
 
bool overrideColor = false
 
bool overrideAlpha = false
 
bool useMetaColor = false
 
StipplingSettings stippling
 
vec4 defaultColor = vec4{1.0f, 0.7f, 0.2f, 1.0f}
 
vec3 overrideColorValue = vec3{0.7f, 0.7f, 0.7f}
 
float overrideAlphaValue = 1.0f
 
TransferFunction metaColor
 

Detailed Description

Basic implementation of the LineSettingsInterface.

Member Function Documentation

◆ getAntialiasingWidth()

virtual float inviwo::LineSettings::getAntialiasingWidth ( ) const
overridevirtual
Returns
Width of antialiasing (in pixels)

Implements inviwo::LineSettingsInterface.

◆ getDefaultColor()

virtual vec4 inviwo::LineSettings::getDefaultColor ( ) const
overridevirtual

Default color used when the mesh doesn't have a color attribute.

Implements inviwo::LineSettingsInterface.

◆ getMetaColor()

virtual const TransferFunction & inviwo::LineSettings::getMetaColor ( ) const
overridevirtual

◆ getMiterLimit()

virtual float inviwo::LineSettings::getMiterLimit ( ) const
overridevirtual

Where to crop of sharp corners. Occurs when two lines meeting at low angles.

Returns
distance (in pixels)

Implements inviwo::LineSettingsInterface.

◆ getOverrideAlpha()

virtual bool inviwo::LineSettings::getOverrideAlpha ( ) const
overridevirtual

◆ getOverrideAlphaValue()

virtual float inviwo::LineSettings::getOverrideAlphaValue ( ) const
overridevirtual

◆ getOverrideColor()

virtual bool inviwo::LineSettings::getOverrideColor ( ) const
overridevirtual

◆ getOverrideColorValue()

virtual vec3 inviwo::LineSettings::getOverrideColorValue ( ) const
overridevirtual

◆ getPseudoLighting()

virtual bool inviwo::LineSettings::getPseudoLighting ( ) const
overridevirtual

Make lines appear cylinder shaped?

Implements inviwo::LineSettingsInterface.

◆ getRoundCaps()

virtual bool inviwo::LineSettings::getRoundCaps ( ) const
overridevirtual

Should line end points be round?

Implements inviwo::LineSettingsInterface.

◆ getRoundDepthProfile()

virtual bool inviwo::LineSettings::getRoundDepthProfile ( ) const
overridevirtual

Depth values according to cylinder shape?

Implements inviwo::LineSettingsInterface.

◆ getStippling()

virtual const StipplingSettingsInterface & inviwo::LineSettings::getStippling ( ) const
overridevirtual

Dashed line settings, e.g., - - -

Implements inviwo::LineSettingsInterface.

◆ getUseMetaColor()

virtual bool inviwo::LineSettings::getUseMetaColor ( ) const
overridevirtual

◆ getWidth()

virtual float inviwo::LineSettings::getWidth ( ) const
overridevirtual
Returns
Line width (in pixels)

Implements inviwo::LineSettingsInterface.

Member Data Documentation

◆ metaColor

TransferFunction inviwo::LineSettings::metaColor
Initial value:
{
{{0.0, vec4{0.0f, 0.0f, 0.0f, 0.0f}}, {1.0, vec4{1.0f, 1.0f, 1.0f, 1.0f}}}}

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