ITimeRect

Aus AquaSoft Wiki
Version vom 7. Dezember 2012, 11:55 Uhr von Carsten (Diskussion | Beiträge)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
Zur Navigation springenZur Suche springen

ITimeRect leitet von ISlideShowObject ab. Es ist eine Datenstruktur, um Eigenschaften eines Objektes in Abhängigkeit von der Abspielzeit speichert. So kann beispielsweise zum Zeitpunkt t0 ein Objekt an anderer Stelle und anders rotiert sein, als zum Zeitpunkt t1. Änderungen zwischen diesen beiden Zeitpunkten werden interpoliert, so dass die Bewegungspfade und Kameraschwenks zustande kommen. Siehe Beispiel

 ITimeRect inherits from ISlideShowObject
   function GetAngleX: Float;
   function GetAngleY: Float;
   function GetAngleZ: Float;
   function GetBottom: Float;
   function GetBounds: TDoubleRect;
   function GetDDX: Float;
   function GetDDY: Float;
   function GetDDZ: Float;
   function GetDX: Float;
   function GetDY: Float;
   function GetDZ: Float;
   function GetHeight: Float;
   function GetLeft: Float;
   function GetRight: Float;
   function GetStretchMode: TStretchmode;
   function GetTime: Float;
   function GetTop: Float;
   function GetValueType: TTimeValueType;
   function GetWidth: Float;
   function GetX: Float;
   function GetY: Float;
   function GetZ: Float;
   procedure SetAngleX(const Value: Float);
   procedure SetAngleY(const Value: Float);
   procedure SetAngleZ(const Value: Float);
   procedure SetBottom(const Value: Float);
   procedure SetBounds(const Value: TDoubleRect);
   procedure SetHeight(const Value: Float);
   procedure SetLeft(const Value: Float);
   procedure SetRight(const Value: Float);
   procedure SetStretchMode(const Value: TStretchmode);
   procedure SetTime(const Value: Float);
   procedure SetTop(const Value: Float);
   procedure SetValueType(const Value: TTimeValueType);
   procedure SetWidth(const Value: Float);
   procedure SetX(const Value: Float);
   procedure SetY(const Value: Float);
   procedure SetZ(const Value: Float);
 end;

Methoden

  • Zeitstempel in Millisekunden

 function GetTime: Float;
 procedure SetTime(const Value: Float);


  • Position im dreidimensionalen Raum

 function GetX: Float;
 function GetY: Float;
 function GetZ: Float;
 procedure SetX(const Value: Float);
 procedure SetY(const Value: Float);
 procedure SetZ(const Value: Float);


  • Rotationswinkel um 3 Achsen

 function GetAngleX: Float;
 function GetAngleY: Float;
 function GetAngleZ: Float;
 procedure SetAngleX(const Value: Float);
 procedure SetAngleY(const Value: Float);
 procedure SetAngleZ(const Value: Float);


  • Bounds, als äußere Begrenzungen als TDoubleRect, bzw. alle Werte einzeln

 function GetBounds: TDoubleRect;
 function GetBottom: Float;
 function GetLeft: Float;
 function GetRight: Float;
 function GetTop: Float;
 procedure SetBottom(const Value: Float);
 procedure SetBounds(const Value: TDoubleRect);
 procedure SetLeft(const Value: Float);
 procedure SetRight(const Value: Float);
 procedure SetTop(const Value: Float);


  • Höhe und Breite

 function GetWidth: Float;
 function GetHeight: Float;
 procedure SetWidth(const Value: Float);
 procedure SetHeight(const Value: Float);


  • Art der Interpolation an dem Punkt
    • Wert tvtSmooth: grob interpoliert
    • Wert tvtEdge: keine Interpolation, Ecke
    • Wert tvtHermite: bessere Interpolation
    • Wert tvtSpline: beste Interpolation, Achtung: rechenlastig

 function GetValueType: TTimeValueType;
 procedure SetValueType(const Value: TTimeValueType);


  • Anpassung der Bilder an unterschiedliche Seitenverhältnisse
    • Wert smStretch: Objekt verzerren
    • Wert smStretchRatio: Objekt einpassen
    • Wert smStretchRatioCut: Leinwand ausfüllen, Objekt entsprechend beschneiden

 function GetStretchMode: TStretchmode;
 procedure SetStretchMode(const Value: TStretchmode);


  • 1. und 2. Ableitung der Kurve an dem Punkt

 function GetDX: Float;
 function GetDY: Float;
 function GetDZ: Float;
 function GetDDX: Float;
 function GetDDY: Float;
 function GetDDZ: Float;