# cee::vtfx::SetItemGroup

class `SetItemGroup` : public RefCountedObject

  A class to store a set (a group of items) that map to a given block.

  For element blocks we currently support element, element face, element edge and element node sets. For node blocks, we only support node sets.

  Public Functions

  `SetItemGroup`()
  virtual `~SetItemGroup`()
  int `blockId`() const

    Returns the block id.

  void `setBlockId`(int blockId)

    Sets the block id.

  Block::BlockType `blockType`() const

    Returns the set block type.

    Must be ELEMENTS or NODES

  void `setBlockType`(Block::BlockType blockType)

    Sets the block type.

    Must be ELEMENTS or NODES

  size_t `itemCount`() const

    Returns number of items in group.

  int `itemIdOrIndex`(size_t index) const

    Returns the id/index of the item at index.

  int `itemSubIndex`(size_t index) const

    Returns the sub-index of the item at index Returns -1 if no sub indices.

  void `setItems`(const std::vector<int> &itemIdOrIndices, const std::vector<int> &subItemIndices = std::vector<int>())

    Sets items in this group from array of ids/indices.

  void `addItems`(const std::vector<int> &itemIdOrIndices)

    Adds items in this group from array of ids/indices.

  void `addItem`(int itemIdOrIndex)

    Adds a single item for given id/index.

  VTFxSetBlockItems *`internal_vtfxSetBlockItems`()

Conversation saved
HOOPSY BETA

### Hello! I'm HOOPSY

Your multilingual generative AI assistant for documentation. Ask me anything about HOOPS Envision for Desktop in your own language, or choose a sample question below to start a conversation:

What is HOOPS Envision for Desktop?
What are the latest release notes for HOOPS Envision for Desktop?
How do I start evaluating HOOPS Envision for Desktop?
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...