15 #include "CeeGeometry/Base.h" 16 #include "CeeGeometry/PartHitItems.h" 17 #include "CeeVisualization/Model.h" 18 #include "CeeCore/BoundingBox.h" 19 #include "CeeCore/Ray.h" 20 #include "CeeVisualization/View.h" 21 #include "CeeCore/Str.h" 22 #include "CeeCore/Vec2f.h" 43 virtual Str modelInfo()
const;
44 virtual void update(
bool forceRecreate);
46 const Mat4d& transformation()
const;
47 void setTransformation(
const Mat4d& transformMatrix);
49 size_t partCount()
const;
50 size_t partIndex(
Part* part)
const;
51 Part* part(
size_t index);
52 const Part* part(
size_t index)
const;
53 Part* partById(
int id);
54 const Part* partById(
int id)
const;
55 void addPart(
Part* part);
56 void removePart(
Part* part);
57 void removeAllParts();
58 bool hasPart(
Part* part)
const;
61 bool regionIntersect(
int x,
int y,
unsigned int width,
unsigned int height,
const vis::View& view,
bool acceptPartiallyContainedParts, std::vector<Part*>* partList);
62 bool regionIntersectPartItems(
int x,
int y,
unsigned int width,
unsigned int height,
const vis::View& view,
bool acceptPartiallyContainedItems, std::vector<PartHitItems>* hitItems);
63 bool polygonIntersect(
const std::vector<Vec2f>& polygonInWindowCoordinates,
const vis::View& view,
bool acceptPartiallyContainedParts, std::vector<Part*>* partList);
66 size_t renderedPartCount()
const;
69 bool internal_exportGeometry(
const Str& fileName);
72 virtual cvf::Model* internal_cvfModel();
73 virtual void internal_setViewCapabilities(
const cvf::OpenGLCapabilities& capabilities,
bool viewDoesHighlighting);
74 virtual bool internal_canAddToViewWithCapabilities(
const cvf::OpenGLCapabilities& viewCapabilities)
const;
75 virtual NotifyAction internal_detectAndConfigureViewClippingInModel(
const vis::View& triggeringView, cvf::OpenGLContext* cvfContext);
76 virtual void internal_applyViewClippingPlanesBeforeRendering(
const cvf::ClipPlaneSet* viewClipPlaneSet,
const cvf::Plane* dropShadowClipPlane);
77 virtual void internal_applyCameraTransformationToClippingPlanes(
const cvf::Camera& camera);
78 virtual NotifyAction internal_preRenderUpdateModel(
const vis::View& triggeringView, cvf::OpenGLContext* cvfContext);
Namespace cee contains all functionality and structures under the Core component. ...
Definition: AppComponent.cpp:26
Small class containing the result of an intersection between a ray and a part in a GeometryModel...
Definition: HitItem.h:29
A general unicode based string class.
Definition: Str.h:28
A ray that can be used for intersection testing.
Definition: Ray.h:27
Model holds information which is to be gathered to constitute a view.
Definition: Model.h:43
Axis-aligned bounding box.
Definition: BoundingBox.h:27
GeometryModel is a subclass of Model that can handle a large number of parts efficiently.
Definition: GeometryModel.h:36
Provides a render area in the user control/widget to enable visualization of the current model data a...
Definition: View.h:40
NotifyAction
Notification sent to the view.
Definition: Model.h:59
Geometry part and how it is to be drawn.
Definition: Part.h:32
4 dimensional matrix.
Definition: Mat4d.h:26