All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
OCMD.h
Go to the documentation of this file.
1 //---------------------------------------------------------------------------------------
2 // Copyright (c) 2001-2024 by Apryse Software Inc. All Rights Reserved.
3 // Consult legal.txt regarding legal and license information.
4 //---------------------------------------------------------------------------------------
5 #ifndef PDFTRON_H_CPPPDFOCGOCMD
6 #define PDFTRON_H_CPPPDFOCGOCMD
7 
8 #include <C/PDF/OCG/TRN_OCMD.h>
9 #include <Common/BasicTypes.h>
10 
11 namespace pdftron {
12  namespace PDF {
13  namespace OCG {
14 
30 class OCMD
31 {
32 public:
33 
45  };
46 
58  static OCMD Create(PDFDoc& doc, SDF::Obj ocgs, VisibilityPolicyType vis_policy);
59 
64  OCMD(SDF::Obj ocmd);
65 
69  bool IsValid() const;
70 
78  SDF::Obj GetOCGs() const;
79 
88 
96 
102 
114  bool IsCurrentlyVisible(const class Context& context) const;
115 
119  SDF::Obj GetSDFObj () const;
120 
124  OCMD (const OCMD& g);
125  OCMD& operator=(const OCMD& g);
126 
127  // @cond PRIVATE_DOC
128  #ifndef SWIGHIDDEN
129  OCMD(TRN_OCMD o) : mp_obj(o) {}
130  TRN_OCMD mp_obj;
131  #endif
132  // @endcond
133 };
134 
135  }; // namespace OCG
136  }; // namespace PDF
137 }; // namespace pdftron
138 
139 #endif // PDFTRON_H_CPPPDFOCGOCMD
visible only if all of the entries in OCGs are ON.
Definition: OCMD.h:41
visible if any of the entries in OCGs are OFF.
Definition: OCMD.h:43
OCMD & operator=(const OCMD &g)
SDF::Obj GetOCGs() const
visible only if all of the entries in OCGs are OFF.
Definition: OCMD.h:44
visible if any of the entries in OCGs are ON.
Definition: OCMD.h:42
bool IsCurrentlyVisible(const class Context &context) const
VisibilityPolicyType GetVisibilityPolicy() const
void SetVisibilityPolicy(VisibilityPolicyType vis_policy)
static OCMD Create(PDFDoc &doc, SDF::Obj ocgs, VisibilityPolicyType vis_policy)
SDF::Obj GetVisibilityExpression() const
SDF::Obj GetSDFObj() const