12 #ifndef hifi_WebEntityItem_h
13 #define hifi_WebEntityItem_h
15 #include "EntityItem.h"
17 #include "PulsePropertyGroup.h"
28 virtual void setUnscaledDimensions(
const glm::vec3& value)
override;
29 virtual ShapeType
getShapeType()
const override {
return SHAPE_TYPE_BOX; }
32 virtual EntityItemProperties getProperties(
const EntityPropertyFlags& desiredProperties,
bool allowEmptyDesiredProperties)
const override;
35 virtual EntityPropertyFlags getEntityProperties(EncodeBitstreamParams& params)
const override;
37 virtual void appendSubclassData(
OctreePacketData* packetData, EncodeBitstreamParams& params,
38 EntityTreeElementExtraEncodeDataPointer entityTreeElementExtraEncodeData,
39 EntityPropertyFlags& requestedProperties,
40 EntityPropertyFlags& propertyFlags,
41 EntityPropertyFlags& propertiesDidntFit,
43 OctreeElement::AppendState& appendState)
const override;
45 virtual int readEntitySubclassDataFromBuffer(
const unsigned char* data,
int bytesLeftToRead,
46 ReadBitstreamToTreeParams& args,
47 EntityPropertyFlags& propertyFlags,
bool overwriteLocalData,
48 bool& somethingChanged)
override;
50 glm::u8vec3 getColor()
const;
51 void setColor(
const glm::u8vec3& value);
53 float getAlpha()
const;
54 void setAlpha(
float alpha);
56 static const QString DEFAULT_SOURCE_URL;
57 void setSourceUrl(
const QString& value);
58 QString getSourceUrl()
const;
60 void setDPI(uint16_t value);
61 uint16_t getDPI()
const;
63 void setScriptURL(
const QString& value);
64 QString getScriptURL()
const;
66 bool getLocalSafeContext()
const;
68 static const uint8_t DEFAULT_MAX_FPS;
69 void setMaxFPS(uint8_t value);
70 uint8_t getMaxFPS()
const;
72 void setInputMode(
const WebInputMode& value);
73 WebInputMode getInputMode()
const;
75 bool getShowKeyboardFocusHighlight()
const;
76 void setShowKeyboardFocusHighlight(
bool value);
78 bool getUseBackground()
const;
79 void setUseBackground(
bool value);
81 static const QString DEFAULT_USER_AGENT;
82 QString getUserAgent()
const;
83 void setUserAgent(
const QString& value);
85 PulsePropertyGroup getPulseProperties()
const;
89 float _alpha { 1.0f };
90 PulsePropertyGroup _pulseProperties;
96 WebInputMode _inputMode;
97 bool _showKeyboardFocusHighlight {
false };
98 bool _useBackground {
false };
100 bool _localSafeContext {
false };
Definition: EntityItem.h:82
virtual ShapeType getShapeType() const
return preferred shape type (actual physical shape may differ)
Definition: EntityItem.h:390
Abstract ID for editing model items. Used in EntityItem JS API.
Definition: EntityItemID.h:28
Definition: EntityItemProperties.h:106
Handles packing of the data portion of PacketType_OCTREE_DATA messages.
Definition: OctreePacketData.h:93