[Curve]

Class to build a 2D line curve. More...

`#include <MeshViz/graph/PoCurveLine.h>`

Inheritance diagram for PoCurveLine:

## Public Types | |

enum | ThicknessBinding { PER_PART_THICKNESS, PER_VERTEX_THICKNESS } |

## Public Member Functions | |

virtual SoType | getTypeId () const |

virtual const SoNodekitCatalog * | getNodekitCatalog () const |

PoCurveLine () | |

## Static Public Member Functions | |

static SoType | getClassTypeId () |

static const SoNodekitCatalog * | getClassNodekitCatalog () |

## Public Attributes | |

SoSFInt32 | thicknessIndex |

SoSFEnum | thicknessBinding |

SoSFFloat | thicknessFactor |

Builds a 2D curve line on 1D mesh (PoIrregularMesh1D or PoRegularMesh1D). The abscissas of the curve are given by the geometry of the current mesh 1D, and the ordinates are given by one of the value-set of the current mesh 1D specified by the field yValuesIndex. The thickness of the line is specified by the field thicknessIndex which is an index of a value-set of the current mesh 1D. If thicknessIndex == -1, the thickness of the curve is inherited. This class also takes into account of the current mesh 1D hints (PoMesh1DHints). The interpretation of colorBinding is the following :

- INHERITED: The entire curve is colored with the same inherited color.

- PER_PART : Each part of the curve is colored with the same color. A part is the line(s) between two abscissas defined by the current mesh 1D.

- PER_VERTEX: A color is used at each vertex of the curve.

- PoCurveLine {
- MeshViz/graph/PoCurveLine.h

colorBinding | INHERITED |

yValuesIndex | 0 |

colorValuesIndex | 1 |

material | NULL |

thicknessIndex | -1 |

thicknessBinding | PER_VERTEX_THICKNESS |

thicknessFactor | 1.0 |

PoCurveLine{

SeparatoralternateRep(from PoBase) {

AppearanceKitappearance(from PoBase)

Specifies the appearance of all the kit. By default lightModel.model=BASE_COLOR. The part material is set when the kit is rebuilt, if the field colorBinding is different from INHERITED.

MatrixTransformdomainTransform(from PoBase)

Corresponds to the domain transformation.

Groupcurve

Contains a SoLineSet shape if the field thicknessIndex =-1, otherwise a list of SoIndexedLineSet shape to draw the curve.}

}

PoCurveLine::PoCurveLine | ( | ) |

Constructor.

static const SoNodekitCatalog* PoCurveLine::getClassNodekitCatalog | ( | ) | ` [static]` |

Returns the SoNodekitCatalog for this class.

Reimplemented from PoChart.

Reimplemented in PoCurveFilling, PoRibbon, and PoTube.

static SoType PoCurveLine::getClassTypeId | ( | ) | ` [static]` |

Returns the type identifier for this class.

Reimplemented from PoChart.

Reimplemented in PoCurveFilling, PoRibbon, and PoTube.

virtual const SoNodekitCatalog* PoCurveLine::getNodekitCatalog | ( | ) | const` [virtual]` |

Returns the SoNodekitCatalog for this instance.

Reimplemented from PoChart.

Reimplemented in PoCurveFilling, PoRibbon, and PoTube.

virtual SoType PoCurveLine::getTypeId | ( | ) | const` [virtual]` |

Returns the type identifier for this specific instance.

Reimplemented from PoChart.

Reimplemented in PoCurveFilling, PoRibbon, and PoTube.

Defines how thickness values are bound to the curve.

If thicknessBinding = PER_PART_THICKNESS, each part of the curve has the same thickness otherwise the thickness between two consecutive vertices is linearly interpolated according to the thickness value associated to these vertices. For curve line, PER_VERTEX_THICKNESS is interpreted as PER_PART_THICKNESS.

Defines a multiplicative factor applied to the thickness values.

Defines the index of the set of values used to specify the thickness.

If thicknessIndex = -1, all the curve has the same thickness which is the inherited line width.

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

Copyright © Thermo Fisher Scientific All rights reserved.