CGAL 4.5.1 - Kinetic Framework
|
The concept Kinetic::InstantaneousKernel
covers models that act as adaptors allowing CGAL static data structures to act on snapshots of kinetic data. Different methods for evaluating predicates are used depending on whether time is set using an NT
or a Time
object. Evaluating predicates when time is the former is much cheaper.
Types | |
typedef unspecified_type | NT |
A number type which can be used to represent the current time. More... | |
typedef unspecified_type | Time |
The type used to represent the current time. More... | |
Operations | |
Time | time () |
Return the current time. | |
NT | time_as_nt () |
Return the current time as an NT . More... | |
bool | time_is_nt () |
Return true if the last time time was set, it was using an object of type NT . | |
void | set_time (Time) |
Set the current time to have a certain value. More... | |
void | set_time (NT) |
The the current time to be an instance of NT . More... | |
Static_object | static_object (Key) |
Return a static object corresponding to the kinetic object at this instant in time. More... | |
A number type which can be used to represent the current time.
This must be a ring or field type.
The type used to represent the current time.
This type must be comparable.
void Kinetic::InstantaneousKernel::set_time | ( | Time | ) |
Set the current time to have a certain value.
All existing predicates are updated automatically.
void Kinetic::InstantaneousKernel::set_time | ( | NT | ) |
The the current time to be an instance of NT
.
With this more efficient techniques can be used. time_is_nt()
must be true.
Static_object Kinetic::InstantaneousKernel::static_object | ( | Key | ) |
Return a static object corresponding to the kinetic object at this instant in time.
time_is_nt()
must be true.
NT Kinetic::InstantaneousKernel::time_as_nt | ( | ) |
Return the current time as an NT
.
As a precondition, time_is_nt
must be true.