Blender  V3.3
Public Member Functions | Protected Attributes | List of all members
Freestyle::Interface1D Class Reference

#include <Interface1D.h>

Inheritance diagram for Freestyle::Interface1D:
Freestyle::Curve Freestyle::FEdge Freestyle::Stroke Freestyle::ViewEdge Freestyle::Chain Freestyle::FEdgeSharp Freestyle::FEdgeSmooth

Public Member Functions

 Interface1D ()
 
virtual ~Interface1D ()
 
virtual string getExactTypeName () const
 
virtual Interface0DIterator verticesBegin ()
 
virtual Interface0DIterator verticesEnd ()
 
virtual Interface0DIterator pointsBegin (float t=0.0f)
 
virtual Interface0DIterator pointsEnd (float t=0.0f)
 
virtual real getLength2D () const
 
virtual Id getId () const
 
virtual Nature::EdgeNature getNature () const
 
virtual unsigned getTimeStamp () const
 
void setTimeStamp (unsigned iTimeStamp)
 

Protected Attributes

unsigned _timeStamp
 

Detailed Description

Base class for any 1D element.

Definition at line 132 of file Interface1D.h.

Constructor & Destructor Documentation

◆ Interface1D()

Freestyle::Interface1D::Interface1D ( )
inline

Default constructor

Definition at line 135 of file Interface1D.h.

◆ ~Interface1D()

virtual Freestyle::Interface1D::~Interface1D ( )
inlinevirtual

Destructor

Definition at line 141 of file Interface1D.h.

Member Function Documentation

◆ getExactTypeName()

virtual string Freestyle::Interface1D::getExactTypeName ( ) const
inlinevirtual

◆ getId()

Id Freestyle::Interface1D::getId ( ) const
virtual

Returns the Id of the 1D element.

Reimplemented in Freestyle::ViewEdge, Freestyle::FEdge, Freestyle::Stroke, and Freestyle::Curve.

Definition at line 45 of file Interface1D.cpp.

Referenced by Freestyle::createStroke().

◆ getLength2D()

real Freestyle::Interface1D::getLength2D ( ) const
virtual

Returns the 2D length of the 1D element.

Reimplemented in Freestyle::ViewEdge, Freestyle::FEdge, Freestyle::Stroke, and Freestyle::Curve.

Definition at line 39 of file Interface1D.cpp.

Referenced by Freestyle::Predicates1D::Length2DBP1D::operator()().

◆ getNature()

Nature::EdgeNature Freestyle::Interface1D::getNature ( ) const
virtual

Returns the nature of the 1D element.

Reimplemented in Freestyle::ViewEdge, and Freestyle::FEdge.

Definition at line 51 of file Interface1D.cpp.

References Freestyle::Nature::NO_FEATURE.

◆ getTimeStamp()

virtual unsigned Freestyle::Interface1D::getTimeStamp ( ) const
inlinevirtual

Returns the time stamp of the 1D element. Mainly used for selection.

Definition at line 186 of file Interface1D.h.

Referenced by Freestyle::Predicates1D::EqualToTimeStampUP1D::operator()().

◆ pointsBegin()

Interface0DIterator Freestyle::Interface1D::pointsBegin ( float  t = 0.0f)
virtual

Returns an iterator over the Interface1D points, pointing to the first point. The difference with verticesBegin() is that here we can iterate over points of the 1D element at a any given sampling. Indeed, for each iteration, a virtual point is created.

Parameters
tThe sampling with which we want to iterate over points of this 1D element.

Reimplemented in Freestyle::ViewEdge, Freestyle::FEdge, Freestyle::Stroke, and Freestyle::Curve.

Definition at line 27 of file Interface1D.cpp.

Referenced by Freestyle::Functions1D::DensityF1D::operator()(), Freestyle::Functions1D::GetCompleteViewMapDensityF1D::operator()(), Freestyle::Functions1D::GetDirectionalViewMapDensityF1D::operator()(), Freestyle::Functions1D::GetSteerableViewMapDensityF1D::operator()(), and Freestyle::Functions1D::GetViewMapGradientNormF1D::operator()().

◆ pointsEnd()

Interface0DIterator Freestyle::Interface1D::pointsEnd ( float  t = 0.0f)
virtual

Returns an iterator over the Interface1D points, pointing after the last point. The difference with verticesEnd() is that here we can iterate over points of the 1D element at a any given sampling. Indeed, for each iteration, a virtual point is created.

Parameters
tThe sampling with which we want to iterate over points of this 1D element.

Reimplemented in Freestyle::ViewEdge, Freestyle::FEdge, Freestyle::Stroke, and Freestyle::Curve.

Definition at line 33 of file Interface1D.cpp.

Referenced by Freestyle::Functions1D::DensityF1D::operator()(), Freestyle::Functions1D::GetCompleteViewMapDensityF1D::operator()(), Freestyle::Functions1D::GetDirectionalViewMapDensityF1D::operator()(), and Freestyle::Functions1D::GetViewMapGradientNormF1D::operator()().

◆ setTimeStamp()

void Freestyle::Interface1D::setTimeStamp ( unsigned  iTimeStamp)
inline

Sets the time stamp for the 1D element.

Definition at line 192 of file Interface1D.h.

Referenced by Freestyle::Functions1D::TimeStampF1D::operator()().

◆ verticesBegin()

Interface0DIterator Freestyle::Interface1D::verticesBegin ( )
virtual

◆ verticesEnd()

Interface0DIterator Freestyle::Interface1D::verticesEnd ( )
virtual

Member Data Documentation

◆ _timeStamp

unsigned Freestyle::Interface1D::_timeStamp
protected

Definition at line 198 of file Interface1D.h.


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