CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
DbViewRepOrientation.h
Go to the documentation of this file.
1
2// Copyright (C) 2002-2024, Open Design Alliance (the "Alliance").
3// All rights reserved.
4//
5// This software and its documentation and related materials are owned by
6// the Alliance. The software may only be incorporated into application
7// programs owned by members of the Alliance, subject to a signed
8// Membership Agreement and Supplemental Software License Agreement with the
9// Alliance. The structure and organization of this software are the valuable
10// trade secrets of the Alliance and its suppliers. The software is also
11// protected by copyright law and international treaty provisions. Application
12// programs incorporating this software must include the following statement
13// with their copyright notices:
14//
15// This application incorporates Open Design Alliance software pursuant to a license
16// agreement with Open Design Alliance.
17// Open Design Alliance Copyright (C) 2002-2024 by Open Design Alliance.
18// All rights reserved.
19//
20// By use of this software, its documentation or related materials, you
21// acknowledge and accept the above terms.
23
24#ifndef OD_VIEWREPORIENTATION_H
25#define OD_VIEWREPORIENTATION_H
26
27#include "DbObject.h"
28#include "ModelDocObjExports.h"
30#include "Ge/GeVector3d.h"
31
32#include "TD_PackPush.h"
33
40{
41public:
43
47
48 const OdGeVector3d& upVector() const;
50 const OdGePoint3d& eye() const;
51 void setEye(const OdGePoint3d&);
52 const OdGePoint3d& target() const;
53 void setTarget(const OdGePoint3d &);
54 OdGeVector3d viewDir() const { return eye()-target(); }
55
57 void addViewChange(const OdGeMatrix3d& xViewChange);
58
59protected:
60 // OdDbObject methods :
62 virtual void dwgOutFields(OdDbDwgFiler* pFiler) const;
64 virtual void dxfOutFields(OdDbDxfFiler* pFiler) const;
65};
66
71
72#include "TD_PackPop.h"
73
74#endif // OD_VIEWREPORIENTATION_H
OdSmartPtr< OdDbViewRepOrientation > OdDbViewRepOrientationPtr
#define MODELDOCOBJ_EXPORT
OdResult
Definition OdResult.h:29
void setTarget(const OdGePoint3d &)
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
OdGeVector3d viewDir() const
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
void addViewChange(const OdGeMatrix3d &xViewChange)
ODDB_DECLARE_MEMBERS(OdDbViewRepOrientation)
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
virtual ~OdDbViewRepOrientation()
void setEye(const OdGePoint3d &)
OdDbViewRepOrientation(const OdGePoint3d &, const OdGePoint3d &, const OdGeVector3d &)
void setUpVector(OdGeVector3d const &)
OdResult eyeToWorld(OdGeMatrix3d &xViewing) const
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
const OdGePoint3d & target() const
const OdGePoint3d & eye() const
const OdGeVector3d & upVector() const