Class to control variable node density along wires through routed nodes.
More...
#include <Node.h>
Class to control variable node density along wires through routed nodes.
All nodes contain a high resolution range.
Definition at line 423 of file agxWire/Node.h.
◆ HighResolutionRange()
| agxWire::HighResolutionRange::HighResolutionRange |
( |
| ) |
|
Default constructor.
Start distance: 0, end distance: 0, nodes per unit distance: invalid.
◆ getEndDistance()
| agx::Real agxWire::HighResolutionRange::getEndDistance |
( |
| ) |
const |
- Returns
- the end distance parameter
◆ getNodesPerUnitDistance()
| agx::Real agxWire::HighResolutionRange::getNodesPerUnitDistance |
( |
| ) |
const |
- Returns
- the number of nodes per unit distance parameter
◆ getStartDistance()
| agx::Real agxWire::HighResolutionRange::getStartDistance |
( |
| ) |
const |
- Returns
- the start distance parameter
◆ isActive()
| bool agxWire::HighResolutionRange::isActive |
( |
| ) |
const |
- Returns
- true if this node will affect the resolution of the wire the node is on
◆ reverse()
| void agxWire::HighResolutionRange::reverse |
( |
| ) |
|
Reverse range (distances).
◆ set()
Function to activate the high resolution for a node in a wire.
The wire will use the highest local resolution when updating its resolution.
- Parameters
-
| startDistance | - defines a point at distance along the wire from the node where the local resolution starts. (could be +-) |
| endDistance | - defines a point at distance along the wire from the node where the local resolution ends. (could be +-) |
| nodesPerUnitDistance | - defines a local resolution within startDistance to endDistance |
◆ setEndDistance()
| void agxWire::HighResolutionRange::setEndDistance |
( |
agx::Real |
endDistance | ) |
|
Assign new end distance.
End distance defines a point at distance along the wire from the node where the local resolution ends. (could be +-)
- Parameters
-
| endDistance | - new end distance (valid < current end distance) |
- Note
- Assigning end distance lower than the current start distance will make the range invalid.
◆ setNodesPerUnitDistance()
| void agxWire::HighResolutionRange::setNodesPerUnitDistance |
( |
agx::Real |
nodesPerUnitDistance | ) |
|
Assign new resolution (number of nodes per unit distance).
Any real value larger than zero is valid. E.g., 0.5 (and unit meters) means one mass node every two meters.
- Note
- Assigning resolution to less or equal to zero will make the range invalid.
◆ setStartDistance()
| void agxWire::HighResolutionRange::setStartDistance |
( |
agx::Real |
startDistance | ) |
|
Assign new start distance.
Start distance defines a point at distance along the wire from the node where the local resolution starts. (could be +-)
- Parameters
-
| startDistance | - new start distance (valid < current end distance) |
- Note
- Assigning start distance higher than the current end distance will make the range invalid.
◆ m_endDistance
| agx::Real agxWire::HighResolutionRange::m_endDistance |
|
protected |
◆ m_nodesPerUnitDistance
| agx::Real agxWire::HighResolutionRange::m_nodesPerUnitDistance |
|
protected |
◆ m_startDistance
| agx::Real agxWire::HighResolutionRange::m_startDistance |
|
protected |
The documentation for this class was generated from the following file: