mDrawableList.clear();
renderList(mDrawableList);
- mCNodeList.clear();
+ cnodes().clear();
for (auto &i : mDrawableList) {
auto lotDrawable = static_cast<LOTDrawable *>(i);
lotDrawable->sync();
- mCNodeList.push_back(lotDrawable->mCNode.get());
+ cnodes().push_back(lotDrawable->mCNode.get());
}
- clayer().mNodeList.ptr = mCNodeList.data();
- clayer().mNodeList.size = mCNodeList.size();
+ clayer().mNodeList.ptr = cnodes().data();
+ clayer().mNodeList.size = cnodes().size();
}
void LOTSolidLayerItem::renderList(std::vector<VDrawable *> &list)
mDrawableList.clear();
renderList(mDrawableList);
- mCNodeList.clear();
+ cnodes().clear();
for (auto &i : mDrawableList) {
auto lotDrawable = static_cast<LOTDrawable *>(i);
lotDrawable->sync();
lotDrawable->mCNode->mImageInfo.mMatrix.m32 = combinedMatrix().m_ty();
lotDrawable->mCNode->mImageInfo.mMatrix.m33 = combinedMatrix().m_33();
- mCNodeList.push_back(lotDrawable->mCNode.get());
+ cnodes().push_back(lotDrawable->mCNode.get());
}
- clayer().mNodeList.ptr = mCNodeList.data();
- clayer().mNodeList.size = mCNodeList.size();
+ clayer().mNodeList.ptr = cnodes().data();
+ clayer().mNodeList.size = cnodes().size();
}
LOTNullLayerItem::LOTNullLayerItem(LOTLayerData *layerData)
mDrawableList.clear();
renderList(mDrawableList);
- mCNodeList.clear();
+ cnodes().clear();
for (auto &i : mDrawableList) {
auto lotDrawable = static_cast<LOTDrawable *>(i);
lotDrawable->sync();
- mCNodeList.push_back(lotDrawable->mCNode.get());
+ cnodes().push_back(lotDrawable->mCNode.get());
}
- clayer().mNodeList.ptr = mCNodeList.data();
- clayer().mNodeList.size = mCNodeList.size();
+ clayer().mNodeList.ptr = cnodes().data();
+ clayer().mNodeList.size = cnodes().size();
}
void LOTShapeLayerItem::renderList(std::vector<VDrawable *> &list)
LOTLayerNode mLayer;
std::vector<LOTMask> mMasks;
std::vector<LOTLayerNode *> mLayers;
+ std::vector<LOTNode *> mCNodeList;
};
class LOTLayerItem
LOTLayerNode& clayer() {return mCApiData->mLayer;}
std::vector<LOTLayerNode *>& clayers() {return mCApiData->mLayers;}
std::vector<LOTMask>& cmasks() {return mCApiData->mMasks;}
+ std::vector<LOTNode *>& cnodes() {return mCApiData->mCNodeList;}
const char* name() const {return mLayerData->name();}
virtual bool resolveKeyPath(LOTKeyPath &keyPath, uint depth, LOTVariant &value);
VBitmap& bitmap() {return mRenderBuffer;}
void updateContent() final;
void renderList(std::vector<VDrawable *> &list) final;
private:
- std::vector<LOTNode *> mCNodeList;
LOTDrawable mRenderNode;
};
bool resolveKeyPath(LOTKeyPath &keyPath, uint depth, LOTVariant &value) override;
protected:
void updateContent() final;
- std::vector<LOTNode *> mCNodeList;
std::unique_ptr<LOTContentGroupItem> mRoot;
};
void updateContent() final;
void renderList(std::vector<VDrawable *> &list) final;
private:
- std::vector<LOTNode *> mCNodeList;
LOTDrawable mRenderNode;
};