# HCamera

## Fields

bool | `valid`
HPoint | `position`
HPoint | `target`
HPoint | `up_vector`
float | `field_width`
float | `field_height`
char | `projection`

## Functions

| `HCamera`
void | `InvalidateCamera`
bool | `CameraDifferent`
bool | `CameraDifferentByAngle`
void | `GetFromView`
void | `Show`
void | `Set`

## Detailed Description

class `HCamera`

  The HCamera class is the data type of a HOOPS Camera Attribute.

  HCamera represents all the data needed to define a HOOPS Camera.

  Public Functions

  inline `HCamera`()
  inline void `InvalidateCamera`()

    This method invalidates the current camera settings.

  bool `CameraDifferent`(HCamera const &cam)

    This method compares the setting of a given camera with this camera’s settings.

    Parameters: | cam – The camera to compare with.
    Returns: | True if this camera is different in anyway from the given camera or false if they are the same.

  bool `CameraDifferentByAngle`(HCamera const &cam)

    This method compares the setting of a given camera with this camera’s settings based on the camera orientation only.

    Parameters: | cam – The camera to compare with.
    Returns: | True if this camera is different in anyway from the given camera or false if they are the same.

  void `GetFromView`(HBaseView const *view)

    This method initializes the camera with the same camera settings under the view’s scene key.

    Parameters: | view – A pointer to the HBaseView object from which to extract camera information.

  void `Show`()

    The is method extracts the camera from the currently open segment and populates into this camera’s settings.

  void `Set`() const

    This method sets the camera on the currently open segment based on this object’s member variables.

  Public Members

  bool `valid`

    True if the object has been initialized.

  HPoint `position`

    The location of the camera.

  HPoint `target`

    The area that the camera is directed at.

  HPoint `up_vector`

    The direction of up.

  float `field_width`

    The width of the field of view.

  float `field_height`

    The height of the field of view.

  char `projection`[128]

    The projection mode which can be “orthographic”, “perspective” or “stretched”.

Conversation saved
HOOPSY BETA

### Hello! I'm HOOPSY

Your Docs generative AI assistant. Ask me anything about HOOPS Visualize 3DF or choose a sample question below to start a conversation:

What is HOOPS Visualize 3DF?
What are the latest release notes for HOOPS Visualize 3DF?
How do I start evaluating HOOPS Visualize 3DF?
How do I write my first sample application?
How can I get assistance?

HOOPSY may store conversations according to OpenAI's policy. Responses may not always be accurate.

HOOPSY is thinking...