All Frameworks  Object Hierarchy  This Framework  Indexes   

Camera2D (Object)

Represents a 2D camera.
The 2D camera stores a 2D viewpoint, that is a Viewpoint2D object.

Property Index

Viewpoint2D
Returns or sets the 2D viewpoint of a 2D camera.

Properties


o Property Viewpoint2D() As
Returns or sets the 2D viewpoint of a 2D camera.
Example:
Assume the active window is a SpecsAndGeomWindow object. This example retrieves the Viewpoint2D of the SpecsViewer and creates from it a Camera2D you handle using the MyCamera variable. Then the camera zoom is set to 2, and the camera's viewpoint is assigned to the SpecsViewer.
 Dim MyCamera As Camera
 Set MyCamera = CATIA.ActiveWindow.SpecsViewer.NewCamera()
 MyCamera.Viewpoint2D.Zoom = 2
 CATIA.ActiveWindow.SpecsViewer.Viewpoint2D = MyCamera.Viewpoint2D
 

Copyright © 2003, Dassault Systèmes. All rights reserved.