VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtBlendMask.h
Go to the documentation of this file.
1 /*****************************************************************************
2 * Copyright (c) 2025 MAK Technologies, Inc.
3 * All rights reserved.
4 *****************************************************************************/
5 
6 #pragma once
7 
11 
15 
16 namespace makVrv
17 {
18 
19  class DtWindow;
20 
25  {
26  public:
28  DtBlendMask(DtDe& de, const std::string& postProcessType, bool handles2D);
29 
31  virtual ~DtBlendMask();
32  private:
34  DtBlendMask() = delete;
35 
37  DtBlendMask(const DtBlendMask&) = delete;
38 
40  DtBlendMask& operator=(const DtBlendMask&) = delete;
41 
42  public:
44  virtual bool update(DtChannel *channel);
45 
46  protected:
47 
48  osg::ref_ptr<osg::Texture> getOrLoadOpacityMask(std::string maskPath);
49  osg::ref_ptr<osg::Texture> getOrLoadImageOverlay(std::string maskPath);
50 
51  protected:
52 
54 
56  {
57  std::string texturePath{ "" };
58  osg::ref_ptr<osg::Texture> texture{ nullptr };
59  };
60 
63  };
64 
65  //
66  // Creator
67  //
68 
73  : public DtPostProcessorCreator
74  {
75  public:
77  friend class DtPostProcessManager;
78 
81 
83  virtual ~DtBlendMaskCreator();
84 
85  protected:
87  virtual DtPostProcessor* create(DtDe& de, const std::string& postProcessType);
88  };
89 
90 }
DtPostProcessorCreator is the common base class for all post processor creators.
Definition: DtPostProcessor.h:234
This class provides an OSG-specific implementation of applying a mask to a channel.
Definition: DtBlendMask.h:24
The abstract Channel Class.
Definition: DtChannel.h:35
A DtBlendMaskCreator instance is registered with the post process element factory to create DtPostPro...
Definition: DtBlendMask.h:72
This class provides the OSG-specific management of post-processing effects.
Definition: DtPostProcessManager.h:27
#define DT_DLL_VRVPOSTPROCESSOR
Definition: vrvPostProcessor.h:19
Contains DLL export macros.
osg::ref_ptr< DtBlendMaskDrawable > myDrawable
Definition: DtBlendMask.h:53
TextureAndPath myOpactiyMask
Definition: DtBlendMask.h:61
Definition: DtBlendMask.h:55
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:76
TextureAndPath myImageOverlay
Definition: DtBlendMask.h:62
Contains makVrv::DtBlendMaskDrawable class.
This class provides the OSG-specific implementation of a post processor. A post processor has a type ...
Definition: DtPostProcessor.h:66

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)