How to get cateogry and all attribute on shop using oxcategory?

I tried to create custom filter module. but unable to get all category and its all attribute?
can anyone help me on this?

have a look at original soruce code, whre the default filter gets all the attributes

Yes I did, but bit confused with oxcategory and getcategoryAttribute.