PropertyApplierVTFx.h
1 //##################################################################################################
2 //
3 // Ceetron Desktop Components
4 // Component: UnstructGrid
5 //
6 // --------------------------------------------------------------------------------------------
7 // Copyright (C) 2011, Ceetron AS
8 // This is UNPUBLISHED PROPRIETARY SOURCE CODE of Ceetron AS. The contents of this file may
9 // not be disclosed to third parties, copied or duplicated in any form, in whole or in part,
10 // without the prior written permission of Ceetron AS.
11 //##################################################################################################
12 
13 #pragma once
14 
15 #include "CeeUnstructGrid/Base.h"
16 #include "CeeVisualization/OverlayItem.h"
17 #include "CeeCore/Str.h"
18 
19 namespace cee {
20 class PropertySetCollection;
21 class ImageResources;
22 
23 namespace vis {
24  class View;
25  class OverlayImage;
26 }
27 
28 namespace ug {
29 class UnstructGridModel;
30 
31 
32 //==================================================================================================
33 //
34 // Apply properties in a property set collection to an existing model/camera etc
35 //
36 //==================================================================================================
37 class CEE_UG_EXPORT PropertyApplierVTFx
38 {
39 public:
40  PropertyApplierVTFx(PropertySetCollection* propSetCollection, ImageResources* resources);
42 
43  void applyToModel(UnstructGridModel* model);
44  void applyToView(vis::View* view);
45 
46  bool logoOverlayImage(vis::OverlayImage* image, vis::OverlayItem::LayoutCorner* layoutCorner, vis::OverlayItem::LayoutDirection* layoutDirection) const;
47  double defaultFramesPerSecond() const;
48  int firstFrameDelay() const;
49  int lastFrameDelay() const;
50  int numberOfParticleTraceAnimationSteps() const;
51  bool hasStartAnimation() const;
52  int animatedCuttingPlaneIndex() const;
53  int animatedCuttingPlaneFrameCount() const;
54  double animatedCuttingPlaneDistancePerFrame() const;
55 
56  Str viewTitle() const;
57 
58 private:
59  CEE_PRIVATE_IMPL(PropertyApplierVTFx);
60  CEE_DISALLOW_COPY_AND_ASSIGN(PropertyApplierVTFx);
61 };
62 
63 
64 
65 } // namespace ug
66 } // namespace cee
LayoutDirection
Enumerator for horizontal or vertical orientation of layout items. Describes which direction addition...
Definition: OverlayItem.h:49
Namespace cee contains all functionality and structures under the Core component. ...
Definition: AppComponent.cpp:26
LayoutCorner
Enumerator for the different locations/"corners" of the view.
Definition: OverlayItem.h:35
A view overlay item capable of showing an image with optional blending.
Definition: OverlayImage.h:29
A general unicode based string class.
Definition: Str.h:28
Applies VTFx properties in a property set collection and image resources to an existing model or view...
Definition: PropertyApplierVTFx.h:37
A collection of property sets.
Definition: PropertySetCollection.h:29
Provides a render area in the user control/widget to enable visualization of the current model data a...
Definition: View.h:40
Class for storing image resources.
Definition: ImageResources.h:30
UnstructGridModel is a subclass of Model which adds specific model structure and functionality for re...
Definition: UnstructGridModel.h:72