Trax3 3.1.0
trax track library
Loading...
Searching...
No Matches
MovableTrackAutoConnecting.h
1// trax track library
2// AD 2023
3//
4// "the resolution of all the fruitless searches"
5//
6// Peter Gabriel
7//
8// Copyright (c) 2025 Trend Redaktions- und Verlagsgesellschaft mbH
9// Copyright (c) 2019 Marc-Michael Horstmann
10//
11// Permission is hereby granted to any person obtaining a copy of this software
12// and associated source code (the "Software"), to use, view, and study the
13// Software for personal or internal business purposes, subject to the following
14// conditions:
15//
16// 1. Redistribution, modification, sublicensing, or commercial use of the
17// Software is NOT permitted without prior written consent from the copyright
18// holder.
19//
20// 2. The Software is provided "AS IS", without warranty of any kind, express
21// or implied.
22//
23// 3. All copies of the Software must retain this license notice.
24//
25// For further information, please contact: horstmann.marc@trendverlag.de
26
27#pragma once
28
29#include "trax/rigid/MovableTrack.h"
30
31namespace trax {
32
33 struct TrackSystem;
34
35 struct MovableTrackAutoConnecting : public virtual MovableTrack {
36 public:
37
39 static dclspc std::shared_ptr<MovableTrackAutoConnecting> Make() noexcept;
40
41
48 virtual void AutoConnecting( Length distance ) noexcept = 0;
49
50 virtual Length AutoConnecting() const noexcept = 0;
51
52 virtual bool IsAutoConnecting() const noexcept = 0;
54
55
57 virtual void Update( const TrackSystem& trackSystem ) = 0;
58 };
59}
Value< Dimension< 1, 0, 0 > > Length
Length.
Definition DimensionedValues.h:324
Namespace of all the trax track libraries classes and methods.
Definition Collection.h:17
Definition MovableTrackAutoConnecting.h:35
static dclspc std::shared_ptr< MovableTrackAutoConnecting > Make() noexcept
Makes a MovableTrackAutoConnecting object.
virtual void Update(const TrackSystem &trackSystem)=0
Updates the track, e.g. reconnecting the end couplings.
Track that can get attached to a moving body.
Definition MovableTrack.h:37
A track system is the container for tracks.
Definition TrackSystem.h:56